{"_id":"bin-check","_rev":"98327","name":"bin-check","description":"Check if a binary is working","dist-tags":{"latest":"4.1.0"},"maintainers":[{"name":"kevva","email":""}],"time":{"modified":"2021-06-03T10:33:09.000Z","created":"2014-02-07T09:13:00.682Z","4.1.0":"2017-06-20T17:55:07.064Z","4.0.1":"2016-09-07T18:11:04.976Z","4.0.0":"2016-06-02T11:53:25.485Z","3.0.0":"2015-10-08T11:58:56.773Z","2.0.0":"2015-06-16T16:15:22.428Z","1.1.0":"2015-05-06T21:43:09.228Z","1.0.0":"2014-08-17T18:28:51.056Z","0.2.0":"2014-08-08T18:42:17.468Z","0.1.5":"2014-05-21T12:54:27.123Z","0.1.4":"2014-05-09T09:20:51.918Z","0.1.3":"2014-04-04T06:41:35.738Z","0.1.2":"2014-03-26T14:40:49.974Z","0.1.1":"2014-02-24T13:48:59.137Z","0.1.0":"2014-02-07T09:13:00.682Z"},"users":{"scotttesler":true,"jamescostian":true},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"repository":{"type":"git","url":"git+https://github.com/kevva/bin-check.git"},"versions":{"4.1.0":{"name":"bin-check","version":"4.1.0","description":"Check if a binary is working","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/bin-check.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["binary","check","executable","test"],"dependencies":{"execa":"^0.7.0","executable":"^4.1.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"7c9a7122d11a78a1c067b10d4a0c41847edd79a8","bugs":{"url":"https://github.com/kevva/bin-check/issues"},"homepage":"https://github.com/kevva/bin-check#readme","_id":"bin-check@4.1.0","_npmVersion":"5.0.3","_nodeVersion":"8.0.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"fc495970bdc88bb1d5a35fc17e65c4a149fc4a49","size":1727,"noattachment":false,"key":"/bin-check/-/bin-check-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-check/download/bin-check-4.1.0.tgz"},"maintainers":[{"name":"kevva","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bin-check-4.1.0.tgz_1497981305960_0.9181943114381284"},"directories":{},"publish_time":1497981307064,"_hasShrinkwrap":false,"_cnpm_publish_time":1497981307064},"4.0.1":{"name":"bin-check","version":"4.0.1","description":"Check if a binary is working","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/bin-check.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["binary","check","executable","test"],"dependencies":{"execa":"^0.4.0","executable":"^2.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"e4207eb0f803daee5bb7cdd11ffd42803e6cb26f","bugs":{"url":"https://github.com/kevva/bin-check/issues"},"homepage":"https://github.com/kevva/bin-check#readme","_id":"bin-check@4.0.1","_shasum":"7cfe6daeab9883b58681d2be2b194420e3b38caf","_from":".","_npmVersion":"3.10.6","_nodeVersion":"5.11.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"7cfe6daeab9883b58681d2be2b194420e3b38caf","size":1757,"noattachment":false,"key":"/bin-check/-/bin-check-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-check/download/bin-check-4.0.1.tgz"},"maintainers":[{"name":"kevva","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/bin-check-4.0.1.tgz_1473271863254_0.5580916830804199"},"directories":{},"publish_time":1473271864976,"_cnpm_publish_time":1473271864976,"_hasShrinkwrap":false},"4.0.0":{"name":"bin-check","version":"4.0.0","description":"Check if a binary is working","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/bin-check.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["binary","check","executable","test"],"dependencies":{"executable":"^2.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"ab3ec9a1ab6678edd84c6611d270bbc578384a23","bugs":{"url":"https://github.com/kevva/bin-check/issues"},"homepage":"https://github.com/kevva/bin-check#readme","_id":"bin-check@4.0.0","_shasum":"1551bd2a3d07565676eac06ebe7c1c5f0443b977","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"1551bd2a3d07565676eac06ebe7c1c5f0443b977","size":1758,"noattachment":false,"key":"/bin-check/-/bin-check-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-check/download/bin-check-4.0.0.tgz"},"maintainers":[{"name":"kevva","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/bin-check-4.0.0.tgz_1464868404173_0.5450419909320772"},"directories":{},"publish_time":1464868405485,"_cnpm_publish_time":1464868405485,"_hasShrinkwrap":false},"3.0.0":{"name":"bin-check","version":"3.0.0","description":"Check if a binary is working","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/bin-check.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["binary","check","executable","test"],"dependencies":{"executable":"^2.0.0","pinkie-promise":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"ignore":["test/test.js"]},"gitHead":"29f003430661ddca4d3d09be5c6a0d9e24970a48","bugs":{"url":"https://github.com/kevva/bin-check/issues"},"homepage":"https://github.com/kevva/bin-check#readme","_id":"bin-check@3.0.0","_shasum":"636dd563dfb33284d313a55247d20698799ba95f","_from":".","_npmVersion":"3.3.3","_nodeVersion":"4.1.2","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"636dd563dfb33284d313a55247d20698799ba95f","size":1814,"noattachment":false,"key":"/bin-check/-/bin-check-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-check/download/bin-check-3.0.0.tgz"},"maintainers":[{"name":"kevva","email":""}],"directories":{},"publish_time":1444305536773,"_cnpm_publish_time":1444305536773,"_hasShrinkwrap":false},"2.0.0":{"name":"bin-check","version":"2.0.0","description":"Check if a binary is working","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/bin-check.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test/test.js"},"files":["index.js"],"keywords":["binary","check","executable","test"],"dependencies":{"executable":"^1.0.0"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"6b2cfc0b1926e8d3054fb606d9559ba24cfd4545","bugs":{"url":"https://github.com/kevva/bin-check/issues"},"homepage":"https://github.com/kevva/bin-check#readme","_id":"bin-check@2.0.0","_shasum":"86f8e6f4253893df60dc316957f5af02acb05930","_from":".","_npmVersion":"2.11.3","_nodeVersion":"2.2.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"86f8e6f4253893df60dc316957f5af02acb05930","size":1768,"noattachment":false,"key":"/bin-check/-/bin-check-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-check/download/bin-check-2.0.0.tgz"},"directories":{},"publish_time":1434471322428,"_cnpm_publish_time":1434471322428,"_hasShrinkwrap":false},"1.1.0":{"name":"bin-check","version":"1.1.0","description":"Check if a binary is working","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/bin-check"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test/test.js"},"files":["index.js"],"keywords":["binary","check","executable","test"],"dependencies":{"executable":"^1.0.0","spawn-sync":"^1.0.6"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"5f9d54e83b07ba66cfc85e00744615ac1464b364","bugs":{"url":"https://github.com/kevva/bin-check/issues"},"homepage":"https://github.com/kevva/bin-check","_id":"bin-check@1.1.0","_shasum":"df20b2721fe4d9029df370236ee6036ddcd78d0c","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"df20b2721fe4d9029df370236ee6036ddcd78d0c","size":1185,"noattachment":false,"key":"/bin-check/-/bin-check-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-check/download/bin-check-1.1.0.tgz"},"directories":{},"publish_time":1430948589228,"_cnpm_publish_time":1430948589228,"_hasShrinkwrap":false},"1.0.0":{"name":"bin-check","version":"1.0.0","description":"Check if a binary is working","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/bin-check"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test/test.js"},"files":["index.js"],"keywords":["binary","check","executable","test"],"dependencies":{"executable":"^1.0.0"},"devDependencies":{"ava":"0.0.3"},"gitHead":"d9522e8455e28349e0342fcdcab3a93c494fcfaa","bugs":{"url":"https://github.com/kevva/bin-check/issues"},"homepage":"https://github.com/kevva/bin-check","_id":"bin-check@1.0.0","_shasum":"572950d1d52a49e54f0d68e2cd123d4e84c3594d","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"572950d1d52a49e54f0d68e2cd123d4e84c3594d","size":1120,"noattachment":false,"key":"/bin-check/-/bin-check-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-check/download/bin-check-1.0.0.tgz"},"directories":{},"publish_time":1408300131056,"_cnpm_publish_time":1408300131056,"_hasShrinkwrap":false},"0.2.0":{"name":"bin-check","version":"0.2.0","description":"Check if a binary is working","license":"MIT","repository":{"type":"git","url":"git://github.com/kevva/bin-check"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha --reporter list"},"files":["index.js"],"keywords":["binary","check","executable","test"],"dependencies":{"executable":"^0.1.0"},"devDependencies":{"mocha":"^1.18.2"},"bugs":{"url":"https://github.com/kevva/bin-check/issues"},"homepage":"https://github.com/kevva/bin-check","_id":"bin-check@0.2.0","_shasum":"dfdebe77b592ffbd6d6099a44b81508ee8bbc1a5","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"dfdebe77b592ffbd6d6099a44b81508ee8bbc1a5","size":1068,"noattachment":false,"key":"/bin-check/-/bin-check-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-check/download/bin-check-0.2.0.tgz"},"directories":{},"publish_time":1407523337468,"_cnpm_publish_time":1407523337468,"_hasShrinkwrap":false},"0.1.5":{"name":"bin-check","version":"0.1.5","description":"Check if a binary is working","license":"MIT","repository":{"type":"git","url":"git://github.com/kevva/bin-check"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha --reporter list"},"files":["index.js"],"keywords":["binary","check","executable","test"],"dependencies":{"executable":"^0.1.0"},"devDependencies":{"mocha":"^1.18.2"},"bugs":{"url":"https://github.com/kevva/bin-check/issues"},"homepage":"https://github.com/kevva/bin-check","_id":"bin-check@0.1.5","_shasum":"e2438f3d06ea0fa7fa5940e78fe5775f4634254a","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"e2438f3d06ea0fa7fa5940e78fe5775f4634254a","size":1227,"noattachment":false,"key":"/bin-check/-/bin-check-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-check/download/bin-check-0.1.5.tgz"},"directories":{},"publish_time":1400676867123,"_cnpm_publish_time":1400676867123,"_hasShrinkwrap":false},"0.1.4":{"name":"bin-check","version":"0.1.4","description":"Check if a binary is working","license":"MIT","repository":{"type":"git","url":"git://github.com/kevva/bin-check"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha --reporter list"},"files":["index.js"],"keywords":["binary","check","executable","test"],"dependencies":{"executable":"^0.1.0","win-spawn":"^2.0.0"},"devDependencies":{"mocha":"^1.18.2"},"bugs":{"url":"https://github.com/kevva/bin-check/issues"},"homepage":"https://github.com/kevva/bin-check","_id":"bin-check@0.1.4","_shasum":"d9548464f1f692a3daabea54dda61454ea9833e2","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"d9548464f1f692a3daabea54dda61454ea9833e2","size":1233,"noattachment":false,"key":"/bin-check/-/bin-check-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-check/download/bin-check-0.1.4.tgz"},"directories":{},"publish_time":1399627251918,"_cnpm_publish_time":1399627251918,"_hasShrinkwrap":false},"0.1.3":{"name":"bin-check","version":"0.1.3","description":"Check if a binary is working","license":"MIT","repository":{"type":"git","url":"git://github.com/kevva/bin-check"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha --reporter list"},"files":["index.js"],"keywords":["binary","check","executable","test"],"dependencies":{"executable":"^0.1.0","win-spawn":"^2.0.0"},"devDependencies":{"mocha":"^1.18.2"},"bugs":{"url":"https://github.com/kevva/bin-check/issues"},"homepage":"https://github.com/kevva/bin-check","_id":"bin-check@0.1.3","dist":{"shasum":"1a15da8e345325d0a1aca6fb8eebb3651fbd805a","size":1277,"noattachment":false,"key":"/bin-check/-/bin-check-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-check/download/bin-check-0.1.3.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"directories":{},"publish_time":1396593695738,"_cnpm_publish_time":1396593695738,"_hasShrinkwrap":false},"0.1.2":{"name":"bin-check","version":"0.1.2","description":"Check if a binary is working","keywords":[],"homepage":"https://github.com/kevva/bin-check","bugs":{"url":"https://github.com/kevva/bin-check/issues"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"license":"MIT","repository":{"type":"git","url":"git://github.com/kevva/bin-check.git"},"scripts":{"test":"mocha --reporter list"},"main":"index.js","files":["index.js"],"dependencies":{"executable":"~0.1.0","win-spawn":"~2.0.0"},"devDependencies":{"mocha":"~1.17.0"},"engines":{"node":">=0.10.0"},"_id":"bin-check@0.1.2","dist":{"shasum":"f42a664dbde2dacfbb1735104503006d115b8df4","size":1195,"noattachment":false,"key":"/bin-check/-/bin-check-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-check/download/bin-check-0.1.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"directories":{},"publish_time":1395844849974,"_cnpm_publish_time":1395844849974,"_hasShrinkwrap":false},"0.1.1":{"name":"bin-check","version":"0.1.1","description":"Check if a binary is working","keywords":[],"homepage":"https://github.com/kevva/bin-check","bugs":{"url":"https://github.com/kevva/bin-check/issues"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"license":"MIT","repository":{"type":"git","url":"git://github.com/kevva/bin-check.git"},"scripts":{"test":"mocha --reporter list"},"main":"index.js","files":["index.js"],"dependencies":{"executable":"~0.1.0"},"devDependencies":{"mocha":"~1.17.0"},"engines":{"node":">=0.10.0"},"_id":"bin-check@0.1.1","dist":{"shasum":"2345fbd12d4a09a67fb056e3d4fa90fe7ab582e6","size":1162,"noattachment":false,"key":"/bin-check/-/bin-check-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-check/download/bin-check-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"directories":{},"publish_time":1393249739137,"_cnpm_publish_time":1393249739137,"_hasShrinkwrap":false},"0.1.0":{"name":"bin-check","version":"0.1.0","description":"Check if a binary is working","keywords":[],"homepage":"https://github.com/kevva/bin-check","bugs":{"url":"https://github.com/kevva/bin-check/issues"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"license":"MIT","repository":{"type":"git","url":"git://github.com/kevva/bin-check.git"},"scripts":{"test":"mocha --reporter list"},"main":"index.js","files":["index.js"],"dependencies":{"executable":"~0.1.0"},"devDependencies":{"mocha":"~1.17.0"},"engines":{"node":">=0.10.0"},"_id":"bin-check@0.1.0","dist":{"shasum":"e4d88ee432f7e69ee9abaff4b8fc47c8bccabdda","size":1154,"noattachment":false,"key":"/bin-check/-/bin-check-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bin-check/download/bin-check-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"directories":{},"publish_time":1391764380682,"_cnpm_publish_time":1391764380682,"_hasShrinkwrap":false}},"readme":"# bin-check [![Build Status](https://travis-ci.org/kevva/bin-check.svg?branch=master)](https://travis-ci.org/kevva/bin-check)\n\n> Check if a binary is working by checking its exit code\n\n\n## Install\n\n```\n$ npm install bin-check\n```\n\n\n## Usage\n\n```js\nconst binCheck = require('bin-check');\n\nbinCheck('/bin/sh', ['--version']).then(works => {\n\tconsole.log(works);\n\t//=> true\n});\n```\n\n\n## API\n\n### binCheck(binary, [arguments])\n\nReturns a `Promise` for a `boolean`.\n\n### binCheck.sync(binary, [arguments])\n\nReturns a `boolean`.\n\n#### binary\n\nType: `string`\n\nPath to the binary.\n\n#### arguments\n\nType: `Array`<br>\nDefault: `['--help']`\n\nArguments to run the binary with.\n\n\n## License\n\nMIT © [Kevin Mårtensson](https://github.com/kevva)\n","_attachments":{},"homepage":"https://github.com/kevva/bin-check#readme","bugs":{"url":"https://github.com/kevva/bin-check/issues"},"license":"MIT"}