{"name":"install-artifact-from-github","version":"1.3.1","description":"Create binary artifacts hosted by github and install them without compiling.","homepage":"https://github.com/uhop/install-artifact-from-github","bugs":{"url":"https://github.com/uhop/install-artifact-from-github/issues"},"github":"https://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","save-to-github-cache":"bin/save-to-github-cache.js"},"keywords":["helper","node addon","node addons","github","github action"],"author":{"name":"Eugene Lazutkin","email":"eugene.lazutkin@gmail.com","url":"https://lazutkin.com/"},"license":"BSD-3-Clause","scripts":{"test":"node tests/test-env.js"},"gitHead":"ffba398015b46862a1c92bd9e6cf8b2b1d3e607d","_id":"install-artifact-from-github@1.3.1","_nodeVersion":"18.3.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-3l3Bymg2eKDsN5wQuMfgGEj2x6l5MCAv0zPL6rxHESufFVlEAKW/6oY9F1aGgvY/EgWm5+eWGRjINveL4X7Hgg==","shasum":"eefaad9af35d632e5d912ad1569c1de38c3c2462","tarball":"http://registry-npm.ywwl.com/install-artifact-from-github/download/install-artifact-from-github-1.3.1.tgz","fileCount":5,"unpackedSize":18857,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHT16RZPNYxNMcqjVimjNlYi2Tjhml5A+6BmpOuIUZyhAiEAuXnIkk9coKamzk3zAgi/Zk7qSQeswtmXiR6x5Q8jci8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiphhPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrd6w//dWy/EXD7EcClUWGlpAmzd1gmsvSQ/NzQ/YGSYQCoVT00DNOi\r\nDupBkJhgLfm4z5SAzCb5L10XU3sNx+czUKwndXHOeAy8gaQqIJ2JQ4PZQRpt\r\nmVRhLEfhRfZuqRZTOA5/Fl+HuH3fEKNrqkZVPi73NtgImQXVgtm5+MJZrYxG\r\nnpvhZg9n2/ox9+ImuQtPi6t5whfuMo63vy1p6ReGdtAzcUZGbyAKpMjXtyio\r\nRX3ypAKF3YCC4zDUDOh3K8FxvVqCbEpM/8old6LwsqOuJuohP30o2HqsitnC\r\nV5bFQ4MVTDhmzD0SWAgR3yP2Qp4o5KBu9Qn8zuHQHSk9X47P2+uGPSJ7tTJc\r\nfnukaz/J3xSehX1yxCL9WrjCbaNsDUV0QKBC8XGqnjdXBPvPwo4250avhMYd\r\nbGHY9Lqaa3hz4v3hf71dt0I9P2GG1ySljThZSOlzA3Lvn6/oQc7fR8CncUq0\r\nrUpr5oy2D3HM8uuKMafWvE+5PhZMVkbK1wUSVdgGbcDxw8n9W9ObruGqGMxd\r\n/Yh13xvKmoz2LcqOxLsnNMLohUk7uqvXAhs9maSOXNMbMDcGk6PP5vI6e4+0\r\nm9cpaGeDX4Mh26Ob/TdSTLcxr5LruZBUjVWFADNfBj8jPkS4w4DcAe5SOAmO\r\n+c6SIuLPMnkC3oR48ZoCPijMq/BcGoReB28=\r\n=BLoo\r\n-----END PGP SIGNATURE-----\r\n","size":6057,"noattachment":false,"key":"/install-artifact-from-github/-/install-artifact-from-github-1.3.1.tgz"},"_npmUser":{"name":"elazutkin","email":"eugene.lazutkin@gmail.com"},"directories":{},"maintainers":[{"name":"elazutkin","email":"eugene.lazutkin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/install-artifact-from-github_1.3.1_1655052366793_0.924422656559061"},"_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":1655052366993,"_cnpm_publish_time":1655052366993,"dist-tags":{"latest":"1.8.1"}}