{"_id":"bin-version","_rev":"89575","name":"bin-version","description":"Get the version of a binary in semver format","dist-tags":{"latest":"6.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T10:29:13.000Z","created":"2014-06-14T21:11:16.759Z","6.0.0":"2021-04-28T08:58:10.178Z","5.0.0":"2021-01-07T05:46:06.030Z","4.0.0":"2019-06-15T15:38:46.877Z","3.1.0":"2019-04-07T11:07:22.891Z","3.0.0":"2018-11-06T17:24:04.873Z","2.0.0":"2015-12-12T11:35:00.534Z","1.0.4":"2015-08-20T19:12:46.087Z","1.0.3":"2015-08-20T18:51:19.378Z","1.0.2":"2015-08-20T14:39:16.237Z","1.0.1":"2015-06-10T00:20:54.854Z","1.0.0":"2014-08-29T16:13:16.484Z","0.1.0":"2014-06-14T21:11:16.759Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/bin-version.git"},"versions":{"6.0.0":{"name":"bin-version","version":"6.0.0","description":"Get the version of a binary in semver format","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/bin-version.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"},"scripts":{"test":"xo && ava && tsd"},"keywords":["binary","executable","version","semver","semantic","cli"],"dependencies":{"execa":"^5.0.0","find-versions":"^5.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.39.1"},"gitHead":"cfa65894223f0c62b565021afaf6f3dc92200c57","bugs":{"url":"https://github.com/sindresorhus/bin-version/issues"},"homepage":"https://github.com/sindresorhus/bin-version#readme","_id":"bin-version@6.0.0","_nodeVersion":"16.0.0","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"08ecbe5fc87898b441425e145f9e105064d00315","size":2390,"noattachment":false,"key":"/bin-version/-/bin-version-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-version/download/bin-version-6.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bin-version_6.0.0_1619600290036_0.011366566020902358"},"_hasShrinkwrap":false,"publish_time":1619600290178,"_cnpm_publish_time":1619600290178},"5.0.0":{"name":"bin-version","version":"5.0.0","description":"Get the version of a binary in semver format","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/bin-version.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["bin","binary","executable","version","semver","semantic","cli"],"dependencies":{"execa":"^5.0.0","find-versions":"^4.0.0"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.14.0","xo":"^0.37.1"},"gitHead":"b92ac77b3c00f4eec36b6022a4e82fed6171c7f7","bugs":{"url":"https://github.com/sindresorhus/bin-version/issues"},"homepage":"https://github.com/sindresorhus/bin-version#readme","_id":"bin-version@5.0.0","_nodeVersion":"15.5.0","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5f9d9071c28f91f86f5b2631fb11651261160f12","size":2449,"noattachment":false,"key":"/bin-version/-/bin-version-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-version/download/bin-version-5.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bin-version_5.0.0_1609998365874_0.707746356579781"},"_hasShrinkwrap":false,"publish_time":1609998366030,"_cnpm_publish_time":1609998366030},"4.0.0":{"name":"bin-version","version":"4.0.0","description":"Get the version of a binary in semver format","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/bin-version.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["bin","binary","executable","version","semver","semantic","cli"],"dependencies":{"execa":"^1.0.0","find-versions":"^3.0.0"},"devDependencies":{"ava":"^2.1.0","tsd":"^0.7.3","xo":"^0.24.0"},"gitHead":"7b076eee10c33c9553cd1dec608b4cd050187223","bugs":{"url":"https://github.com/sindresorhus/bin-version/issues"},"homepage":"https://github.com/sindresorhus/bin-version#readme","_id":"bin-version@4.0.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"e9366b57ba83077364ecf2097a946891086a4008","size":2490,"noattachment":false,"key":"/bin-version/-/bin-version-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-version/download/bin-version-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bin-version_4.0.0_1560613126719_0.9679342095025767"},"_hasShrinkwrap":false,"publish_time":1560613126877,"_cnpm_publish_time":1560613126877},"3.1.0":{"name":"bin-version","version":"3.1.0","description":"Get the version of a binary in semver format","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/bin-version.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["bin","binary","executable","version","semver","semantic","cli"],"dependencies":{"execa":"^1.0.0","find-versions":"^3.0.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"4dfad641a54ddf8629c0b4a1314f18d8af8904bf","bugs":{"url":"https://github.com/sindresorhus/bin-version/issues"},"homepage":"https://github.com/sindresorhus/bin-version#readme","_id":"bin-version@3.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5b09eb280752b1bd28f0c9db3f96f2f43b6c0839","size":2131,"noattachment":false,"key":"/bin-version/-/bin-version-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-version/download/bin-version-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bin-version_3.1.0_1554635242746_0.4241429704323605"},"_hasShrinkwrap":false,"publish_time":1554635242891,"_cnpm_publish_time":1554635242891},"3.0.0":{"name":"bin-version","version":"3.0.0","description":"Get the version of a binary in semver format","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/bin-version.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"keywords":["bin","binary","executable","version","semver","semantic","cli"],"dependencies":{"execa":"^1.0.0","find-versions":"^3.0.0"},"devDependencies":{"ava":"^1.0.0-rc.1","xo":"^0.23.0"},"gitHead":"a81abcb198e3ef32dfced29faa64fa5d27105a27","bugs":{"url":"https://github.com/sindresorhus/bin-version/issues"},"homepage":"https://github.com/sindresorhus/bin-version#readme","_id":"bin-version@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"1a8be03f652171713b1b1ccc4b0ebea460b08818","size":1712,"noattachment":false,"key":"/bin-version/-/bin-version-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-version/download/bin-version-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bin-version_3.0.0_1541525044721_0.6988310171616288"},"_hasShrinkwrap":false,"publish_time":1541525044873,"_cnpm_publish_time":1541525044873},"2.0.0":{"name":"bin-version","version":"2.0.0","description":"Get the version of a binary in semver format","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/bin-version"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["bin","binary","executable","version","semver","semantic","cli"],"dependencies":{"execa":"^0.1.1","find-versions":"^2.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"185b7dcbf1e023b2741f64793a18189f98f4c749","bugs":{"url":"https://github.com/sindresorhus/bin-version/issues"},"homepage":"https://github.com/sindresorhus/bin-version","_id":"bin-version@2.0.0","_shasum":"2cc95d83b522bdef2e99978e76aeb5491c8114ff","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"2cc95d83b522bdef2e99978e76aeb5491c8114ff","size":1781,"noattachment":false,"key":"/bin-version/-/bin-version-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-version/download/bin-version-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1449920100534,"_cnpm_publish_time":1449920100534,"_hasShrinkwrap":false},"1.0.4":{"name":"bin-version","version":"1.0.4","description":"Get the version of a binary in semver format","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/bin-version.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["bin","binary","executable","version","semver","semantic","cli"],"dependencies":{"find-versions":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"78bdb0f3fa6c09c0b2228996d6d1fab4b58bbf06","bugs":{"url":"https://github.com/sindresorhus/bin-version/issues"},"homepage":"https://github.com/sindresorhus/bin-version#readme","_id":"bin-version@1.0.4","_shasum":"9eb498ee6fd76f7ab9a7c160436f89579435d78e","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9eb498ee6fd76f7ab9a7c160436f89579435d78e","size":1705,"noattachment":false,"key":"/bin-version/-/bin-version-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-version/download/bin-version-1.0.4.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1440097966087,"_cnpm_publish_time":1440097966087,"_hasShrinkwrap":false},"1.0.3":{"name":"bin-version","version":"1.0.3","description":"Get the version of a binary in semver format","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/bin-version.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["bin","binary","executable","version","semver","semantic","cli"],"dependencies":{"buffered-spawn":"^1.1.2","find-versions":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"716ddc3a26154ddd442bc669367c1043c102a243","bugs":{"url":"https://github.com/sindresorhus/bin-version/issues"},"homepage":"https://github.com/sindresorhus/bin-version#readme","_id":"bin-version@1.0.3","_shasum":"262d6f140d6e262555ed3da946570f83824dd0e6","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"262d6f140d6e262555ed3da946570f83824dd0e6","size":1715,"noattachment":false,"key":"/bin-version/-/bin-version-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-version/download/bin-version-1.0.3.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1440096679378,"_cnpm_publish_time":1440096679378,"_hasShrinkwrap":false},"1.0.2":{"name":"bin-version","version":"1.0.2","description":"Get the version of a binary in semver format","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/bin-version.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["bin","binary","executable","version","semver","semantic","cli"],"dependencies":{"find-versions":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"464992b5720aa501b40433dec3e350a99f9bd234","bugs":{"url":"https://github.com/sindresorhus/bin-version/issues"},"homepage":"https://github.com/sindresorhus/bin-version#readme","_id":"bin-version@1.0.2","_shasum":"c7587043f355267eb1d9f214e02070a8f7bd92a3","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c7587043f355267eb1d9f214e02070a8f7bd92a3","size":1711,"noattachment":false,"key":"/bin-version/-/bin-version-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-version/download/bin-version-1.0.2.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1440081556237,"_cnpm_publish_time":1440081556237,"_hasShrinkwrap":false},"1.0.1":{"name":"bin-version","version":"1.0.1","description":"Get the version of a binary in semver format","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/bin-version.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["bin","binary","executable","version","semver","semantic","cli"],"dependencies":{"find-versions":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"f62c74651a70a6752cb839c8f013b8f8c8e27436","bugs":{"url":"https://github.com/sindresorhus/bin-version/issues"},"homepage":"https://github.com/sindresorhus/bin-version#readme","_id":"bin-version@1.0.1","_shasum":"72fb296be7f3879fce2ee508d11cfa4e49d238f3","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"72fb296be7f3879fce2ee508d11cfa4e49d238f3","size":1703,"noattachment":false,"key":"/bin-version/-/bin-version-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-version/download/bin-version-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1433895654854,"_cnpm_publish_time":1433895654854,"_hasShrinkwrap":false},"1.0.0":{"name":"bin-version","version":"1.0.0","description":"Get the version of a binary in semver format","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/bin-version"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["bin","binary","executable","version","semver","semantic","cli"],"dependencies":{"find-versions":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"bugs":{"url":"https://github.com/sindresorhus/bin-version/issues"},"homepage":"https://github.com/sindresorhus/bin-version","_id":"bin-version@1.0.0","_shasum":"e1affa5d77cfddd4bc026411d886a6bf5d22d74f","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"e1affa5d77cfddd4bc026411d886a6bf5d22d74f","size":1022,"noattachment":false,"key":"/bin-version/-/bin-version-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-version/download/bin-version-1.0.0.tgz"},"directories":{},"publish_time":1409328796484,"_cnpm_publish_time":1409328796484,"_hasShrinkwrap":false},"0.1.0":{"name":"bin-version","version":"0.1.0","description":"Get the version of a binary in semver format","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/bin-version"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["bin","binary","executable","version","semver","semantic","cli"],"dependencies":{"find-versions":"^0.1.0"},"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/bin-version/issues"},"homepage":"https://github.com/sindresorhus/bin-version","_id":"bin-version@0.1.0","_shasum":"247aa9d410a34d07fa5e3021ac517d6439efc9c5","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"247aa9d410a34d07fa5e3021ac517d6439efc9c5","size":1032,"noattachment":false,"key":"/bin-version/-/bin-version-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-version/download/bin-version-0.1.0.tgz"},"directories":{},"publish_time":1402780276759,"_cnpm_publish_time":1402780276759,"_hasShrinkwrap":false}},"readme":"# bin-version\n\n> Get the version of a binary in [semver](https://github.com/npm/node-semver) format\n\n## Install\n\n```\n$ npm install bin-version\n```\n\n## Usage\n\n```\n$ curl --version\ncurl 7.30.0 (x86_64-apple-darwin13.0)\n```\n\n```js\nimport binaryVersion from 'bin-version';\n\nconsole.log(await binaryVersion('curl'));\n//=> '7.30.0'\n```\n\n```\n$ openssl version\nOpenSSL 1.0.2d 9 Jul 2015\n```\n\n```js\nimport binaryVersion from 'bin-version';\n\nconsole.log(await binaryVersion('openssl'));\n//=> '1.0.2'\n```\n\n```\n$ openssl version\nOpenSSL 1.0.2d 9 Jul 2015\n```\n\n```js\nimport binaryVersion from 'bin-version';\n\nconsole.log(await binaryVersion('openssl', {args: ['version']}));\n//=> '1.0.2'\n```\n\n## API\n\n### binaryVersion(binary, options?)\n\nReturns a `Promise<string>` with the version of the `binary`.\n\n#### binary\n\nType: `string`\n\nThe name of or path to the binary to get the version from.\n\n#### options\n\nType: `object`\n\n##### args\n\nType: `string[]`\n\nThe arguments to pass to `binary` so that it will print its version.\n\nIf not specified, predefined arguments will be used for known binaries, or `['--version']` and `['version']` arguments will be tried.\n\n## Related\n\n- [bin-version-cli](https://github.com/sindresorhus/bin-version-cli) - CLI for this module\n- [find-versions](https://github.com/sindresorhus/find-versions) - Find semver versions in a string\n","_attachments":{},"homepage":"https://github.com/sindresorhus/bin-version#readme","bugs":{"url":"https://github.com/sindresorhus/bin-version/issues"},"license":"MIT"}