copy-macos-version-to-the-clipboardby Daniel Rodríguez RiveroInstallAdd to Kit.app // Name: os version import "@johnlindquist/kit"const version_info = (await $`sw_vers`).stdoutconst version_lines = version_info.split("\n");const version_number = version_lines[1].replace(/(?:.*?)(\d+)/,"$1");copy(`macOS ${version_number}`);