{"name":"install-artifact-from-github","version":"1.3.2","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","save-to-github":"node bin/save-to-github-cache --artifact package.json"},"gitHead":"113318c2f210c36a2f88380c339c0dfd6652441d","_id":"install-artifact-from-github@1.3.2","_nodeVersion":"14.21.2","_npmVersion":"6.14.17","dist":{"integrity":"sha512-yCFcLvqk0yQdxx0uJz4t9Z3adDMLAYrcGYv546uRXCSvxE+GqNYhhz/KmrGcUKGI/gVLR9n/e/zM9jX/+ASMJQ==","shasum":"1a16d9508e40330523a3017ae0d4713ccc64de82","tarball":"http://registry-npm.ywwl.com/install-artifact-from-github/download/install-artifact-from-github-1.3.2.tgz","fileCount":5,"unpackedSize":19122,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGJpoRwCJVio4ou1m9vXgHFpMIqtlY3AJsKZmB/giMRgIhANJ2yMAt7qx3CxwAvv719oJFsKz/PDSpZAKedANysiKp"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjn7MAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqeBA/9GiZaZpMZUJLTMQCsAevEpg01VD8b0bBBUXHV74/qvQrWTDUJ\r\n2UbkptNkvFiw0K/+WbOxbg6pnoHi/gcwYGPcEYfwSqX3VPRw18HzJ1f45fmF\r\nPVR377/o91SSIOF47XZKhEmK5VbkcVvrRWV1SzFCvoBiIYawrsKF/NPSIG1U\r\ne7RXMMmNIhUIl/ggCtuEMUvOv886UNBwPzKpGJawcVulPeM0BhyKCdIZK2b4\r\ne0aYSckTw1Vc+HFqjRVCzmYUW8uigznj1Co5WNEYxCjW7e2xVnS2Lj1nDnsL\r\nX7X5EalfFpdvnHl/C4dOPzdEsFFbwp223bjyGj5MKJ+F0Je5s7+/56D8QYat\r\nkmdiXYlNeoG+HXU+Q/MlTqJEX0simtZ8qr+WHlqFV9hxXtwWWwCeyQVPL5Ws\r\neZNolHZY7P34rBOqcg6KdQ3LWeN29wzaJ8GbE1l+UFBisB5Ca6xYluBwCDjg\r\nMRgAno4zto2o9j9stfG87oN6RkTIXBRUxBj1cZAZisQUREodqodChPSBIpAi\r\nUcEcIrOrFUAITyRui9mPOaM78tHCTSiHpVMTFDxnnjsV61rcPXPyDvJVKfro\r\nPgj3xyQwHU5GQvRf1ftZlkyZyMhpY50rgqIOHZQGQkO/1qDm3QkG5JPbjrJ7\r\nWlVLwigH6rSvoy6o2XTqWFAtQSniRv6kLBk=\r\n=A1l5\r\n-----END PGP SIGNATURE-----\r\n","size":6158,"noattachment":false,"key":"/install-artifact-from-github/-/install-artifact-from-github-1.3.2.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.2_1671410432415_0.06633546955407388"},"_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":1671410432615,"_cnpm_publish_time":1671410432615,"dist-tags":{"latest":"1.8.1"}}