{"name":"install-artifact-from-github","version":"1.0.1","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":"f83c7f1538b0ffacd3789b92cae2addffd2d32e9","_id":"install-artifact-from-github@1.0.1","_nodeVersion":"14.5.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-TdqET1jp9Wpvi61edL2wzWkLdbOXz0ClvxxW6uJSkyiZDFwwsYWe0nquFXk2hCMdHer7AJFba2jK7A4iSZyLqw==","shasum":"498341c1ef7ea108644c59fb9b8210b523894f88","tarball":"http://registry-npm.ywwl.com/install-artifact-from-github/download/install-artifact-from-github-1.0.1.tgz","fileCount":4,"unpackedSize":14896,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDn+5CRA9TVsSAnZWagAAwvUP/i+NhNjlbAqUYbklclwZ\nkJcOVe9WUOGKvQ3onH9AO0/K0bAdXY21Meu1GAZrvxaCLM6PeVDoDbO/BquM\naWrOnhDeh++OrrX7BsjNm1RB1P/dvWRMXjdPB81D9WIGYNDF63MIoW4QfgMr\nyBp6sjV0GSjoSWAqzkKUi7D57eJvYFFVrRdRYWbSXEpbSo+YuZ3Cij4Pu2kU\nKjoP45xO8Dmgd1chN0Irjiz/hHqljlF6jFKkQ32qAiFfl4zBifIXUb4k1S1X\nADoJu7eRB7NLXpYA9F/w1W+0RBhu+PKrCAEt9bjM6EFamF0whICa0UeJSpEy\nwK1yfcxkAZU58GUtXfaEq+gzsHUj/Q+Yfsq70MgqHdoKcLpR3gKJHK6j/OiP\nS4zr4yxeWe5dzurv5n8R+tvNcyqw9bkGs5prsFJFEAF4NeYH102GP0P2NiAQ\nKBQtux9fyish1CGNHtLIGvJZc4jT+p5lwRCnIdHSGhLmsVi6NUI9GEB0WKU0\nLnIc7j0XNJYGJvxzqieNhVZfL/Ns2WyFwWlS5SaCRIBGEkSVF1yNiE/wt0vt\nfl4oAGKX1n2ezmO08MKc8zMZbeahbh8wOnMzdiUI0u/4AJqlE0KkPw+tW7Yl\nsRKzf1Cj8HdHsZdIZBJpULs3+Ehf6n4dguOp81vepowXBZynHxtyFnOJ3SZP\nIybh\r\n=Lq3g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZ1MLdY+pZ8TEm2OlymY/GJUIoyVwc9QmTMH5li1x2cQIhAL6pR23q9GefY83+DfVuPje/s+W9Ys3eMtiDjV9jwqc+"}],"size":5628,"noattachment":false,"key":"/install-artifact-from-github/-/install-artifact-from-github-1.0.1.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.1_1594785721044_0.08438185714285518"},"_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":1594785721342,"_cnpm_publish_time":1594785721342,"dist-tags":{"latest":"1.8.1"}}