{"versions":{"2.2.0":{"name":"default-shell","version":"2.2.0","description":"Get the user's default shell","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/default-shell.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["default","shell","sh","zsh","bash","cmd","comspec","env","environment","variables","get","user"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"bf25302e10280d79069b0e68ebb57df346592ba6","bugs":{"url":"https://github.com/sindresorhus/default-shell/issues"},"homepage":"https://github.com/sindresorhus/default-shell#readme","_id":"default-shell@2.2.0","_nodeVersion":"14.17.5","_npmVersion":"7.20.3","dist":{"shasum":"31481c19747bfe59319b486591643eaf115a1864","size":1792,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/default-shell/-/default-shell-2.2.0.tgz","integrity":"sha512-sPpMZcVhRQ0nEMDtuMJ+RtCxt7iHPAMBU+I4tAlo5dU1sjRpNax0crj6nR3qKpvVnckaQ9U38enXcwW9nZJeCw=="},"_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/default-shell_2.2.0_1631890251945_0.27551113220072665"},"_hasShrinkwrap":false,"publish_time":1631890252263,"_cnpm_publish_time":1631890252263,"_cnpmcore_publish_time":"2021-12-16T21:31:18.981Z","contributors":[]},"2.1.0":{"name":"default-shell","version":"2.1.0","description":"Get the user's default shell","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/default-shell.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["default","shell","sh","zsh","bash","cmd","comspec","env","environment","variables","get","user"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"4e4bfa3e71d781137c9486ff54d714eca3f14ceb","bugs":{"url":"https://github.com/sindresorhus/default-shell/issues"},"homepage":"https://github.com/sindresorhus/default-shell#readme","_id":"default-shell@2.1.0","_nodeVersion":"12.22.1","_npmVersion":"7.20.3","dist":{"shasum":"27baadd7af10b2166011bd8fdd842e88636e73e3","size":1621,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/default-shell/-/default-shell-2.1.0.tgz","integrity":"sha512-UYaqlLpAg7iSfqt8ZAuIpMuH3cjQZqdUci3A6m1zwdoyNTB5/N8okk60FVCBM0r5teog92zl0T8ZWf5ZzqUgSQ=="},"_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/default-shell_2.1.0_1631789351868_0.5009138544693819"},"_hasShrinkwrap":false,"publish_time":1631789351977,"_cnpm_publish_time":1631789351977,"_cnpmcore_publish_time":"2021-12-16T21:31:19.193Z","contributors":[]},"2.0.0":{"name":"default-shell","version":"2.0.0","description":"Get the user's default shell","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/default-shell.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava"},"keywords":["default","shell","sh","zsh","bash","cmd","comspec","env","environment","variables","get","user"],"devDependencies":{"ava":"^3.15.0","xo":"^0.44.0"},"gitHead":"62333dde528d507250fc7e36fbc687222b004ace","bugs":{"url":"https://github.com/sindresorhus/default-shell/issues"},"homepage":"https://github.com/sindresorhus/default-shell#readme","_id":"default-shell@2.0.0","_nodeVersion":"16.7.0","_npmVersion":"7.20.3","dist":{"shasum":"02b1e912447f08c4025e37b52f3194fa17fb9733","size":1547,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/default-shell/-/default-shell-2.0.0.tgz","integrity":"sha512-/+Rzp2ybcQMkmtgY0g518Vpk4TWAFg0MqfLLY6r4iWckG7kQacMma+xI3jbA+t+JW21Q9ZD0C+sODwVdwpbixw=="},"_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/default-shell_2.0.0_1629847062199_0.49104852676454747"},"_hasShrinkwrap":false,"publish_time":1629847062371,"_cnpm_publish_time":1629847062371,"_cnpmcore_publish_time":"2021-12-16T21:31:19.361Z","contributors":[]},"1.0.1":{"name":"default-shell","version":"1.0.1","description":"Get the user's default shell","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/default-shell.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["default","shell","sh","zsh","bash","cmd","cmd.exe","comspec","env","environment","var","variables","get","user"],"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"6c4b1e78a34530534b978ef6b9f91f98897bd922","bugs":{"url":"https://github.com/sindresorhus/default-shell/issues"},"homepage":"https://github.com/sindresorhus/default-shell#readme","_id":"default-shell@1.0.1","_shasum":"752304bddc6174f49eb29cb988feea0b8813c8bc","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"752304bddc6174f49eb29cb988feea0b8813c8bc","size":1561,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/default-shell/-/default-shell-1.0.1.tgz","integrity":"sha512-/Os8tTMPSriNHCsVj3VLjMZblIl1sIg8EXz3qg7C5K+y9calfTA/qzlfPvCQ+LEgLWmtZ9wCnzE1w+S6TPPFyQ=="},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/default-shell-1.0.1.tgz_1462213334913_0.6194936435203999"},"directories":{},"publish_time":1462213335347,"_hasShrinkwrap":false,"_cnpm_publish_time":1462213335347,"_cnpmcore_publish_time":"2021-12-16T21:31:19.562Z","contributors":[]},"1.0.0":{"name":"default-shell","version":"1.0.0","description":"Get the user's default shell","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/default-shell.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["default","shell","sh","zsh","bash","cmd","cmd.exe","comspec","env","environment","var","variables","get","user"],"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"caf70623babc2d9da305a5c575a09712cca14fc9","bugs":{"url":"https://github.com/sindresorhus/default-shell/issues"},"homepage":"https://github.com/sindresorhus/default-shell#readme","_id":"default-shell@1.0.0","_shasum":"e06f46471ea29a4ed26b238debf2d736ccb8c355","_from":".","_npmVersion":"3.6.0","_nodeVersion":"4.2.4","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"e06f46471ea29a4ed26b238debf2d736ccb8c355","size":1553,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/default-shell/-/default-shell-1.0.0.tgz","integrity":"sha512-/aRLvoQVlJy6/dWH38OfU3BTjOJVGOgx50GCixHIS7a9FSRahmh2eyWrD6/+6Z28zNsx9JGcqUG4LU8qXULTKw=="},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"directories":{},"publish_time":1453592132035,"_hasShrinkwrap":false,"_cnpm_publish_time":1453592132035,"_cnpmcore_publish_time":"2021-12-16T21:31:19.767Z","contributors":[]}},"dist-tags":{"latest":"2.2.0"},"name":"default-shell","time":{"created":"2022-01-26T21:22:53.277Z","modified":"2024-07-27T10:01:45.227Z","2.2.0":"2021-09-17T14:50:52.263Z","2.1.0":"2021-09-16T10:49:11.977Z","2.0.0":"2021-08-24T23:17:42.371Z","1.0.1":"2016-05-02T18:22:15.347Z","1.0.0":"2016-01-23T23:35:32.035Z"},"readme":"# default-shell\n\n> Get the user's default [shell](https://en.wikipedia.org/wiki/Shell_(computing))\n\n## Install\n\n```sh\nnpm install default-shell\n```\n\n## Usage\n\n```js\nimport defaultShell from 'default-shell';\n\n// macOS\nconsole.log(defaultShell);\n//=> '/bin/bash'\n\n// Windows\nconsole.log(defaultShell);\n//=> 'C:\\\\WINDOWS\\\\system32\\\\cmd.exe'\n```\n\nThere is also a method that gets the correct default shell even if it changes at runtime:\n\n```js\nimport {detectDefaultShell} from 'default-shell';\n\nconsole.log(detectDefaultShell());\n//=> '/bin/bash'\n```","users":{}}