-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
47 lines (47 loc) · 2.7 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
{
"name": "bin-wrapper",
"version": "0.3.4",
"description": "Binary wrapper that makes your programs seamlessly available as local dependencies",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/kevva/bin-wrapper"
},
"author": {
"name": "Kevin Mårtensson",
"email": "kevinmartensson@gmail.com",
"url": "https://github.com/kevva"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha --reporter list --timeout 0"
},
"files": [
"index.js"
],
"keywords": [
"bin",
"check",
"local",
"wrapper"
],
"dependencies": {
"bin-check": "^0.1.0",
"download": "^0.1.2",
"find-file": "^0.1.2"
},
"devDependencies": {
"mocha": "^1.18.2",
"rimraf": "^2.2.6"
},
"readme": "# bin-wrapper [![Build Status](https://travis-ci.org/kevva/bin-wrapper.svg?branch=master)](https://travis-ci.org/kevva/bin-wrapper)\n\n> Binary wrapper for Node.js that makes your programs seamlessly available as local dependencies\n\n## Install\n\n```bash\n$ npm install --save bin-wrapper\n```\n\n## Usage\n\n```js\nvar BinWrapper = require('bin-wrapper');\nvar bin = new BinWrapper({ global: true });\n\nbin\n .src('https://raw.github.com/yeoman/node-jpegtran-bin/0.2.4/vendor/win/x64/jpegtran.exe', 'win32', 'x64')\n .src('https://raw.github.com/yeoman/node-jpegtran-bin/0.2.4/vendor/win/x64/libjpeg-62.dll', 'win32', 'x64')\n .dest('vendor')\n .use('jpegtran.exe')\n .run(['--version'], function (err) {\n if (err) {\n throw err;\n }\n\n console.log('jpegtran is working');\n });\n```\n\nGet the path to your binary with `bin.use`:\n\n```js\nconsole.log(bin.use()); // => path/to/vendor/jpegtran.exe\n```\n\n## API\n\n### new BinWrapper(opts)\n\nCreates a new `BinWrapper` instance. Use the `global` option to enable or disable global checking.\n\n### .src(str)\n\nAccepts a URL pointing to a file to download.\n\n### .dest(str)\n\nAccepts a path which the files will be downloaded to.\n\n### .use(str)\n\nDefine which file to use as the binary.\n\n### .run(cmd, cb)\n\nRuns the search for the binary. If no binary is found it will download the file using the URL\nprovided in `.src()`. It will also check that the binary is working by running it using `cmd`\nand checking it's exit code.\n\n## Options\n\n### global\n\nType: `Boolean` \nDefault: `true`\n\nWhether to check for a binary globally or not.\n\n## License\n\nMIT © [Kevin Mårtensson](http://kevinmartensson.com)\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/kevva/bin-wrapper/issues"
},
"homepage": "https://github.com/kevva/bin-wrapper",
"_id": "bin-wrapper@0.3.4",
"_from": "bin-wrapper@^0.3.0"
}