-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
49 lines (49 loc) · 1.83 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"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"
},
"readme": "# bin-check [![Build Status](https://travis-ci.org/kevva/bin-check.png?branch=master)](https://travis-ci.org/kevva/bin-check)\n\n> Check if a binary is working in Node.js by checking its exit code.\n\n## Install\n\n```bash\nnpm install bin-check\n```\n\n## Usage\n\n```js\nvar binCheck = require('bin-check');\n\nbinCheck('/bin/sh', '--version', function (err, works, msg) {\n console.log(msg);\n // => GNU bash, version 3.2.51(1)-release-(x86_64-apple-darwin13)\n\n console.log(works);\n // => true\n});\n```\n\n## API\n\n### binCheck(name, cmd, cb)\n\nCheck if a binary is working by checking its exit code. Use `cmd` to test against\ncustom commands. Defaults to `--help`.\n\n## License\n\n[MIT License](http://en.wikipedia.org/wiki/MIT_License) © [Kevin Mårtensson](https://github.com/kevva)\n",
"readmeFilename": "README.md",
"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"
},
"_from": "bin-check@^0.1.0",
"_resolved": "http://registry.npmjs.org/bin-check/-/bin-check-0.1.3.tgz"
}