{"name":"install-artifact-from-github","version":"1.1.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","save-to-github-cache":"bin/save-to-github-cache.js"},"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":"48a92f653f71c6a451807818d471283ac1ce3b55","_id":"install-artifact-from-github@1.1.1","_nodeVersion":"14.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ZA4d8ABVKdGoWjYK+EyHrOfMRpOLyrBX/9dVts2ULDBRuFWObQ/I3o4f80Ca8klbYQAa5oIRG7XbU22r74A+Ew==","shasum":"587cd8b1a8ed97f4d4230cd7f76bec7a0c4ff292","tarball":"http://registry-npm.ywwl.com/install-artifact-from-github/download/install-artifact-from-github-1.1.1.tgz","fileCount":5,"unpackedSize":20354,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgmn9CRA9TVsSAnZWagAAip8P/2bRLSK33yoW5WpM6vCX\nVWMbu3v1gZOG8POm3wZE2t5ur345iplNIyBUIpvlqfIS7P8r5Hcav6OzQhPL\nrj+pw6qH6TdyOZHToLiFzAwmsyFl6b0J0ALvq/r+GlrFzagqH4ZlVIvdwuYP\n+NAvb4A1kcQdz1K6gChBVpppB5BIlyj/dtzpNBK9Untk3taVjzcDfqgYDhsA\ni09n7CRdJKpwo7eXZsluefDC+Z7idDlNeeYbhvrFn42Fc7tP+P/lA5sQaqsi\nWuT9DrIX6Fb1bINYETnLujDMCCXo28EH+2UNgjLWGtW5HLrbAxFDUfzk4yBQ\n3rvvDj4+Ho4fNDnAr1/xP5ENvrhba4mmYJcdU9xJ7kIJxX+8TfWJPtCsfBAw\nKfnvHBzAVIn0GMZ4Mb4RTNRDlysoKDmwCUPTqKKX2dHM91X2Bagqqvk5THUX\nNjie+VUEnQLqR85qDm1j1D8T14tC62kC7jf/PQU11YmTXoB5Nls+U9JFBwbh\nWvIgDAVhUl6OCU05wVxE/y5NT1wsr4BbYn3yYtIm27XylH0AVcGuKQBs863v\nh/0phXDCuip98tnrU267YzOt24EhKRQ4lo7RhMRefI9qFwPAsymnOd3MjXip\nuP4iC68e+O4T+XupmcTRfBliqA8W9wHmTp0py7GOvSJ6UBjMTk1ja4irE1N9\n5HxW\r\n=jGTu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEoapEJNQyUAGCNCYIy6/gUEr+FHicZzzIziIC7HjaYFAiEA9o+GYqNudxMAPgMhOITd0mH8pFZ+CvnSlDn/H9x/cK0="}],"size":6697,"noattachment":false,"key":"/install-artifact-from-github/-/install-artifact-from-github-1.1.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.1.1_1602382333291_0.17155899451126566"},"_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":1602382333447,"_cnpm_publish_time":1602382333447,"dist-tags":{"latest":"1.8.1"}}