{"name":"binwrap","version":"0.2.2","description":"Package cross-platform binaries","main":"index.js","scripts":{"test":"(cd test_app && ./build_packages.sh) && mocha && eslint ."},"repository":{"type":"git","url":"git+https://github.com/avh4/binwrap.git"},"author":{"name":"Aaron VonderHaar","email":"gruen0aermel@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/avh4/binwrap/issues"},"homepage":"https://github.com/avh4/binwrap#readme","bin":{"binwrap-install":"bin/binwrap-install","binwrap-prepare":"bin/binwrap-prepare","binwrap-test":"bin/binwrap-test"},"devDependencies":{"chai":"^4.2.0","child-process-promise":"^2.2.1","eslint":"^6.0.1","http-server":"^0.11.1","mocha":"^6.2.0"},"dependencies":{"mustache":"^3.0.1","request":"^2.88.0","request-promise":"^4.2.4","tar":"^4.4.10","unzip-stream":"^0.3.0"},"gitHead":"de5791842d7617ae21f634e26c9b8bfe58064c31","_id":"binwrap@0.2.2","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"avh4","email":"gruen0aermel@gmail.com"},"dist":{"integrity":"sha512-Y+Wvypk3JhH5GPZAvlwJAWOVH/OsOhQMSj37vySuWHwQivoALplPxfBA8b973rFJI7OS+O+1YmmYXIiEXVMAcw==","shasum":"7d1ea74b28332f18dfdc75548aef993041ffafc9","tarball":"http://registry-npm.ywwl.com/binwrap/download/binwrap-0.2.2.tgz","fileCount":12,"unpackedSize":14022,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSv+pCRA9TVsSAnZWagAAC0AQAKI78ZNdXwSafyIEUp37\nO7opHhjs5rLuwnyE+U1dYnxXGwhR7vgTjgQFRpu8p3lpOmYOJO6tJ9eZyyha\n2oSvRinrD7Omy1j80YaK8E9R8hhCVZ5PiOUTIhomMsRimdrza6CV4HD5v6pG\n7W1LzorRduQF4/93XbuED5pPBZZXyz+ODK9ONx7kF4U9IbWWNd1AJ60emSDk\nFbEUSk7ShkiKW+asJls0rR2O3NMeZURBwwi2Ii6M8yNecDeieQnUXQo1QM2U\nattozEN+ZFqd9R6l+gDS/1XCFZKwhnlVa580Mz1RQ5x3HiP9tnFB/nC5nIZj\n1IVMCfNi5Q3AVnWH/VxFxGsizA0hb7Dt6JVy42wNEgScBpGLWcXMeq5UMgwy\ntvUI7jn41nC4yI0woGpw4EsgBWcymKGCYDGYvFtQPBs7MY/6GZtzlhsOH5n3\n1VXbZj+b4kTQ6qW1/ElqhOjFHxRhLUAEum+9xXQKIfngZMFim0A3Yc+/5t/y\nCZ4fv6z8QXO9Uqb73CJpplicUAIg0UfVhaLo0vH7JC+7XNnfPARQjjc2vBeV\nJhqFYhLa0xnoa4HEOvyVG3+/uAG8T4ka8vS38VOX7WWuD+kgAFxFZGwGGO0G\n/EEA382WQ5H3nT4ir/gpvBwg27+aeVero6NiyNGopfezz1T2qdI4eUeUTx7R\nAjPk\r\n=vbxR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDEWtDjtXhjj3Y/O2apOsm536iCaOh4iHgQwRqzFSTgQIhAOZ3clWkxtSrGqSRjIVY1sYHWToBXQsWI9BfDYXd6VdB"}],"size":4309,"noattachment":false,"key":"/binwrap/-/binwrap-0.2.2.tgz"},"maintainers":[{"name":"avh4","email":"gruen0aermel@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/binwrap_0.2.2_1565196200267_0.36194439533388256"},"_hasShrinkwrap":false,"readme":"[![Build Status](https://travis-ci.org/avh4/binwrap.svg?branch=master)](https://travis-ci.org/avh4/binwrap) [![npm](https://img.shields.io/npm/v/binwrap.svg)](https://www.npmjs.com/package/binwrap)\n\nThis package helps with distributing binaries via npm.\n\n## Usage\n\nFirst, create your compiled binaries and make them available via HTTPS.\n\nNow create your npm installer: Make a `package.json` that looks like this:\n\n```json\n{\n  \"name\": \"myApp\",\n  \"version\": \"1.0.0\",\n  \"description\": \"Install myApp\",\n  \"preferGlobal\": true,\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"install\": \"binwrap-install\",\n    \"prepare\": \"binwrap-prepare\",\n    \"test\": \"binwrap-test\",\n    \"prepublish\": \"npm test\"\n  },\n  \"license\": \"BSD-3-Clause\",\n  \"files\": [\n    \"index.js\",\n    \"bin\"\n  ],\n  \"bin\": {\n    \"myapp-cli\": \"bin/myapp-cli\"\n  },\n  \"dependencies\": {\n    \"binwrap\": \"^0.2.3\"\n  }\n}\n```\n\nThen create your `index.js` file like this:\n\n```javascript\nvar binwrap = require(\"binwrap\");\nvar path = require(\"path\");\n\nvar packageInfo = require(path.join(__dirname, \"package.json\"));\nvar version = packageInfo.version;\nvar root = \"https://dl.bintray.com/me/myApp/\" + version;\n\nmodule.exports = binwrap({\n  dirname: __dirname,\n  binaries: [\n    \"myapp-cli\"\n  ],\n  urls: {\n    \"darwin-x64\": root + \"/mac-x64.tgz\",\n    \"linux-x64\": root + \"/linux-x64.tgz\",\n    \"win32-x64\": root + \"/win-i386.zip\",\n    \"win32-ia32\": root + \"/win-i386.zip\"\n  }\n});\n```\n\nThen run `npm test` to verify that your packages are published correctly.\n\nFinally, run `npm publish` when you are ready to publish your installer.\n\n\n## Javascript API\n\nJavascript code can get the absolute path to a binary from a package that uses binwrap\nas follows (in this example, \"my-package\" is a published npm package that uses binwrap,\nand has a `my-package-cli` binary):\n\n```js\nconst cliPath = require('my-package').paths['my-package-cli'];\n```\n","publish_time":1565196200466,"_cnpm_publish_time":1565196200466,"dist-tags":{"latest":"0.2.3","rc":"0.2.0-rc2"}}