{"name":"install-artifact-from-github","version":"1.0.0","description":"Create binary artifacts hosted by github and install from them without compiling.","homepage":"http://github.com/uhop/install-artifact-from-github","bugs":{"url":"http://github.com/uhop/install-artifact-from-github/issues"},"github":"http://github.com/uhop/install-artifact-from-github","repository":{"type":"git","url":"git://github.com/uhop/install-artifact-from-github.git"},"bin":{"install-from-cache":"bin/install-from-cache.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["helper","node addon","node addons","github","github action","github action"],"author":{"name":"Eugene Lazutkin","email":"eugene.lazutkin@gmail.com","url":"http://lazutkin.com/"},"license":"BSD-3-Clause","gitHead":"379f84de8fc412c50b07da3f137f47c30c998126","_id":"install-artifact-from-github@1.0.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-UCvy+0zLJKPolE6dBeDMF1GsNWlWIbXNPh8RCv3mz1HYLTY34zF+i/TB5425kFrkjxt8fiAktzmDaUsqJhv7yQ==","shasum":"3e791beb4875f2cb132a12fa61b63dc1d26cd91b","tarball":"http://registry-npm.ywwl.com/install-artifact-from-github/download/install-artifact-from-github-1.0.0.tgz","fileCount":4,"unpackedSize":14834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDnzaCRA9TVsSAnZWagAAai4P/j3KTXVMPri1cTK3cXT3\nnU9QVUB/VxNjxSxbDW2lNbPv+fqmMc3B6tIM6I6Ln5Rv1UwDerC5JvUEV8oQ\njL7a6UaPUsqg0w9KhGL3b/Wmhk66RDqWRagxFz+bA8AaKh7ua7z8rvGiDLOI\n89kRvIvh777PXfmLdbeMZWnICXRcLdT4EhOnMJIgJBIJsfu5ko2u96uLY48b\nD8IE3ir94cGtAMrkD27TTkrC92yWUcRutzA1GSiqHNtIbZ7m25CLusvIayUg\n0I/kzHO7Svkbzd1NHeMgOIBXchDyYtrGxLY8974m5zO7NO3YxibS0d30d+fd\nr/gAzUqM4x3g+qd5d4/CN37rL64dHi/Y7D3BDfximOwjT76G447STlQWvezm\nDj4R01vWxjFy+mifbJTLSVPxnELVGO3wv2WL/g4fRT8kT6Awh8VeXC23MWwf\n/RwCNuD4PZWvFjjwiV6ndMj8DuKkrShHqJAvIbrcjbAtcBSmpjlScfXbE6NR\nMEBWz+6eWVqjsypW6ElzcJljvwQy8gddcp0TVfJRGtn1cT7O+NXaURqwOi8q\nOtX1SkSXK4IVrsdoEc7ajaOkrYP0SfgdD0MYVJGg03bA36u3SHG29tGd4dUM\nKoKm6KEk+U0YPDexXYSM4A1RWI1v+YmF6PnSG4zAapIZpqmgxemIxLiojH9s\nNFFD\r\n=bBhu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCo2VD3SeOMjItpBoklfqeAk1W++3kDnXaKw0AMWUREuQIgScIll3y2sN02OuQbsRIUKdKMQWS8d+Om7HKMgmcrD/g="}],"size":5608,"noattachment":false,"key":"/install-artifact-from-github/-/install-artifact-from-github-1.0.0.tgz"},"maintainers":[{"name":"elazutkin","email":"eugene.lazutkin@gmail.com"}],"_npmUser":{"name":"elazutkin","email":"eugene.lazutkin@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-artifact-from-github_1.0.0_1594784985790_0.442960031927355"},"_hasShrinkwrap":false,"readme":"# install-artifact-from-github [![NPM version][npm-img]][npm-url]\n\n[npm-img]: https://img.shields.io/npm/v/install-artifact-from-github.svg\n[npm-url]: https://npmjs.org/package/install-artifact-from-github\n\nThis is a no-dependency micro helper for developers of binary addons for Node. It is literally two small one-file utilities integrated with [GitHub releases](https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/about-releases). The project solves two problems:\n\n* [save-to-github-cache](./Saving) saves a binary artifact to a Github release according to the platform, architecture, and Node ABI.\n  * Designed to be used with [GitHub actions](https://github.com/features/actions).\n* [install-from-cache](./Installing) retrieves a previously saved artifact, tests if it works properly, and rebuilds a project from sources in the case of failure.\n\nIn general, it can save your users from a long recompilation and, in some cases, even save them from installing build tools.\nBy using GitHub facilities ([Releases](https://docs.github.com/en/github/administering-a-repository/about-releases)\nand [Actions](https://github.com/features/actions)) the whole process of publishing and subsequent installations are secure,\ntransparent, painless, inexpensive, or even free for public repositories.\n\n## How to install\n\nInstallation:\n\n```\nnpm install --save install-artifact-from-github\n```\n\n## How to use\n\nIn your `package.json` (pseudo-code with comments):\n\n```js\n{\n  // your custom package.json stuff\n  // ...\n  \"scripts\": {\n    // your scripts go here\n    // ...\n\n    // saves an artifact\n    \"save-to-github\": \"save-to-github-cache --artifact build/Release/ABC.node\",\n\n    // installs using pre-created artifacts\n    \"install\": \"install-from-cache --artifact build/Release/ABC.node\",\n\n    // used by \"install\" to test the artifact\n    \"verify-build\": \"node scripts/verify-build.js\"\n\n    // used by \"install\" to rebuild from sources\n    \"rebuild\": \"node-gyp rebuild\"\n  }\n}\n```\n\nExamples of GitHub actions can be found in the documentation.\n\n## Documentation\n\nThe full documentation is available in the [wiki](https://github.com/uhop/install-artifact-from-github/wiki).\n\n## Release history\n\n- 1.3.5 *propagated the previous timeout fix to the saving utility.*\n- 1.3.4 *minor fixes + a timeout fix: use a new default agent for GET. Thx, [Laura Hausmann](https://github.com/zotanmew).*\n- 1.3.3 *minor refactor, added support for a personal token.*\n- 1.3.2 *added support for the 204 response and error logging.*\n- 1.3.1 *added a way to specify a custom build, thx [Grisha Pushkov](https://github.com/reepush) + a test.*\n- 1.3.0 *enhanced support for custom mirrors.*\n- 1.2.0 *support for NPM >= 7.*\n- 1.1.3 *technical release: updated docs.*\n- 1.1.2 *technical release: updated docs.*\n- 1.1.1 *numerous bugfixes to please Github REST API.*\n- 1.1.0 *moved `save-to-github` here from a separate project, reduced 3rd-party dependencies.*\n- 1.0.2 *fixed a `yarn`-specific bug.*\n- 1.0.1 *fixed a bug in the environment variable parameter.*\n- 1.0.0 *initial release (extracted from [node-re2](https://github.com/uhop/node-re2)).*\n","publish_time":1594784985906,"_cnpm_publish_time":1594784985906,"dist-tags":{"latest":"1.8.1"}}