-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
executable file
·50 lines (50 loc) · 2.89 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
50
{
"name": "bin-wrapper",
"version": "0.1.9",
"description": "Binary wrapper for Node.js that makes your programs seamlessly available as local dependencies",
"keywords": [
"bin",
"build",
"make",
"wrapper"
],
"homepage": "https://github.com/kevva/bin-wrapper",
"bugs": {
"url": "https://github.com/kevva/bin-wrapper/issues"
},
"author": {
"name": "Kevin Martensson",
"email": "kevinmartensson@gmail.com",
"url": "http://kevinmartensson.com"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/kevva/bin-wrapper.git"
},
"scripts": {
"test": "mocha --reporter list --timeout 0"
},
"main": "bin-wrapper.js",
"files": [
"bin-wrapper.js"
],
"dependencies": {
"download": "~0.1.2",
"isbin": "0.0.2",
"mout": "~0.6.0",
"progress": "~1.1.0",
"rimraf": "~2.2.6",
"which": "~1.0.5"
},
"devDependencies": {
"mocha": "~1.12.0"
},
"engines": {
"node": ">=0.10.0"
},
"readme": "# bin-wrapper [![Build Status](https://secure.travis-ci.org/kevva/bin-wrapper.png?branch=master)](http://travis-ci.org/kevva/bin-wrapper)\n\nBinary wrapper for Node.js that makes your programs seamlessly available as local dependencies\n\n## Getting started\n\nInstall with [npm](https://npmjs.org/package/bin-wrapper): `npm install bin-wrapper`\n\n## Examples\n\nAll `platform` and `arch` specific options takes precedence over the base \noptions. See [test.js](test.js) for a full fleshed example.\n\n```js\nvar Bin = require('bin-wrapper');\n\nvar opts = {\n name: 'Gifsicle',\n bin: 'gifsicle',\n path: 'vendor',\n url: 'http://url/to/gifsicle',\n src: 'http://www.lcdf.org/gifsicle/gifsicle-1.71.tar.gz',\n buildScript: './configure --bindir=\"vendor\" && make install',\n platform: {\n win32: {\n bin: 'gifsicle.exe',\n url: [\n 'http://url/to/gifsicle.exe'\n 'http://url/to/gifsicle.dll'\n ]\n }\n }\n}\nvar bin = new Bin(opts);\n\nbin.check('--version', function (works) {\n if (!works) {\n console.log('Pre-build test failed, compiling from source');\n return bin.build();\n }\n\n console.log('Binary passed the test');\n});\n```\n\nGet the path to your binary with `bin.path`.\n\n```js\nconsole.log(bin.path);\n// => path/to/vendor/gifsicle\n```\n\n## API\n\n### .check(cmd, cb)\n\nCheck if a binary is present and working. If it isn't, download and test it by \nrunning the binary with `cmd` and see if it exits correctly.\n\n### .build(cb)\n\nDownload the source archive defined in the `src` property and build it using the \nbuild script defined in the `buildScript` property.\n\n## License\n\n[MIT License](http://en.wikipedia.org/wiki/MIT_License) (c) [Kevin Mårtensson](http://kevinmartensson.com)\n",
"readmeFilename": "README.md",
"_id": "bin-wrapper@0.1.9",
"_from": "bin-wrapper@~0.1.3"
}