{"versions":{"2.0.0":{"name":"gh-release-assets","description":"Upload assets to a GitHub release","version":"2.0.0","author":{"name":"Paul C Pederson","email":"paul.c.pederson@gmail.com"},"bugs":{"url":"https://github.com/hypermodules/gh-release-assets/issues"},"dependencies":{"async":"^3.2.0","mime":"^2.4.6","progress-stream":"^2.0.0","pumpify":"^2.0.1","simple-get":"^4.0.0","util-extend":"^1.0.1"},"devDependencies":{"gh-release":"^4.0.0","standard":"^14.3.4","tape":"^5.0.0","tap-spec":"^5.0.0"},"homepage":"https://github.com/hypermodules/gh-release-assets","keywords":["gh-release","github","release","upload"],"license":"ISC","main":"index.js","repository":{"type":"git","url":"git+https://github.com/hypermodules/gh-release-assets.git"},"scripts":{"release":"gh-release --owner=hypermodules && npm publish","test":"standard && tape test/index.js | tap-spec"},"gitHead":"894c3fe3bb313ef7b5f2a8f8b1b06ac80e5c5ba6","_id":"gh-release-assets@2.0.0","_nodeVersion":"14.9.0","_npmVersion":"6.14.7","dist":{"shasum":"1aca1a7a3f2a7ead0eeb43104177cda6cdf1febf","size":3276,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/gh-release-assets/-/gh-release-assets-2.0.0.tgz","integrity":"sha512-I+Gy+e86o7A6J7sJRX4uA3EvLlLFcXxsRre22YTJ5dzpl/elZA75bMWfoBd0WVY3Mp9M8KtROfn3zlzDkptyWw=="},"maintainers":[{"name":"anonymous","email":"bcomnes@gmail.com"},{"name":"anonymous","email":"jagravois@gmail.com"},{"name":"anonymous","email":"paul.c.pederson@gmail.com"}],"_npmUser":{"name":"anonymous","email":"bcomnes@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gh-release-assets_2.0.0_1600196356023_0.8789506380530316"},"_hasShrinkwrap":false,"publish_time":1600196356137,"_cnpm_publish_time":1600196356137,"_cnpmcore_publish_time":"2021-12-16T19:35:18.982Z","contributors":[]},"1.1.2":{"name":"gh-release-assets","description":"Upload assets to a GitHub release","version":"1.1.2","author":{"name":"Paul C Pederson","email":"paul.c.pederson@gmail.com"},"bugs":{"url":"https://github.com/hypermodules/gh-release-assets/issues"},"dependencies":{"async":"^0.9.0","mime":"^1.3.4","progress-stream":"^2.0.0","request":"^2.85.0","util-extend":"^1.0.1"},"devDependencies":{"faucet":"0.0.1","gh-release":"^2.2.1","standard":"^10.0.1","tape":"^4.0.0"},"files":["index.js"],"homepage":"https://github.com/hypermodules/gh-release-assets","keywords":["gh-release","github","release","upload"],"license":"ISC","main":"index.js","repository":{"type":"git","url":"git+https://github.com/hypermodules/gh-release-assets.git"},"scripts":{"release":"gh-release --owner=hypermodules && npm publish","test":"standard && faucet"},"gitHead":"06ae1789d57eeae3d187f30b2dbcc65a0950bc1e","_id":"gh-release-assets@1.1.2","_shasum":"efbd4eaf3294a1985636bff6b3b9645d8ffd9457","_from":".","_npmVersion":"3.10.10","_nodeVersion":"8.10.0","_npmUser":{"name":"anonymous","email":"ungoldman@gmail.com"},"dist":{"shasum":"efbd4eaf3294a1985636bff6b3b9645d8ffd9457","size":3179,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/gh-release-assets/-/gh-release-assets-1.1.2.tgz","integrity":"sha512-VsUOob9HCXi4fPIbmiyuj1eP0o6zBYiDFPoSob6cTOAPviWiXmlYu3PFifdXlaXH+Bw7n8kJnQETzA/V8EPrKQ=="},"maintainers":[{"name":"anonymous","email":"bcomnes@gmail.com"},{"name":"anonymous","email":"jagravois@gmail.com"},{"name":"anonymous","email":"paul.c.pederson@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gh-release-assets_1.1.2_1524874579671_0.12673741554622153"},"_hasShrinkwrap":false,"publish_time":1524874579951,"_cnpm_publish_time":1524874579951,"_cnpmcore_publish_time":"2021-12-16T19:35:19.206Z","contributors":[]},"1.1.1":{"name":"gh-release-assets","description":"Upload assets to a GitHub release","version":"1.1.1","author":{"name":"Paul C Pederson","email":"paul.c.pederson@gmail.com"},"bugs":{"url":"https://github.com/hypermodules/gh-release-assets/issues"},"dependencies":{"async":"^0.9.0","mime":"^1.3.4","progress-stream":"^2.0.0","request":"^2.55.0","util-extend":"^1.0.1"},"devDependencies":{"faucet":"0.0.1","gh-release":"^2.2.1","standard":"^10.0.1","tape":"^4.0.0"},"files":["index.js"],"homepage":"https://github.com/hypermodules/gh-release-assets","keywords":["gh-release","github","release","upload"],"license":"ISC","main":"index.js","repository":{"type":"git","url":"git+https://github.com/hypermodules/gh-release-assets.git"},"scripts":{"release":"gh-release --owner=hypermodules && npm publish","test":"standard && faucet"},"gitHead":"e684e132c6067a24be56a3ea4b87c72a7660fb2e","_id":"gh-release-assets@1.1.1","_shasum":"1cb91c8d2d58cee76661cd54fd9c2639e4a7401a","_from":".","_npmVersion":"4.4.4","_nodeVersion":"7.7.4","_npmUser":{"name":"anonymous","email":"ungoldman@gmail.com"},"dist":{"shasum":"1cb91c8d2d58cee76661cd54fd9c2639e4a7401a","size":3173,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/gh-release-assets/-/gh-release-assets-1.1.1.tgz","integrity":"sha512-pdSw5FBIBQOK2H0FNMz5vHbcGB9qB05ZUW+imTWSmAhCZa+RHHjfXqZiy0zbFulZAqU7FMBUo3qbBkdsqT/lMg=="},"maintainers":[{"name":"anonymous","email":"bcomnes@gmail.com"},{"name":"anonymous","email":"jagravois@gmail.com"},{"name":"anonymous","email":"paul.c.pederson@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gh-release-assets-1.1.1.tgz_1491943858091_0.46039740461856127"},"directories":{},"publish_time":1491943858368,"_hasShrinkwrap":false,"_cnpm_publish_time":1491943858368,"_cnpmcore_publish_time":"2021-12-16T19:35:19.410Z","contributors":[]},"1.1.0":{"name":"gh-release-assets","description":"Upload assets to a GitHub release","version":"1.1.0","author":{"name":"Paul C Pederson","email":"paul.c.pederson@gmail.com"},"bugs":{"url":"https://github.com/paulcpederson/gh-release-assets/issues"},"dependencies":{"async":"^0.9.0","mime":"^1.3.4","progress-stream":"^1.1.1","request":"^2.55.0","util-extend":"^1.0.1"},"devDependencies":{"faucet":"0.0.1","standard":"^3.3.2","tape":"^4.0.0"},"files":["index.js"],"homepage":"https://github.com/paulcpederson/gh-release-assets","keywords":["gh-release","github","release","upload"],"license":"ISC","main":"index.js","repository":{"type":"git","url":"https://github.com/paulcpederson/gh-release-assets.git"},"scripts":{"test":"standard && faucet"},"gitHead":"ab4e6d5dcf16ee124aef77276b3b7a2c4a06a5e3","_id":"gh-release-assets@1.1.0","_shasum":"00f76bd151d020032de10712f525d2a944814595","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.1","_npmUser":{"name":"anonymous","email":"paul.c.pederson@gmail.com"},"maintainers":[{"name":"anonymous","email":"bcomnes@gmail.com"},{"name":"anonymous","email":"jagravois@gmail.com"},{"name":"anonymous","email":"paul.c.pederson@gmail.com"}],"dist":{"shasum":"00f76bd151d020032de10712f525d2a944814595","size":3037,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/gh-release-assets/-/gh-release-assets-1.1.0.tgz","integrity":"sha512-XR9f5swytjuUXjIzh33fDnH69+snufWEikHdR45CDtKldhv1RHQ3qphTxJ40E+PVKCRCJxv+YXv3YXbXvIGw8g=="},"directories":{},"publish_time":1429916522727,"_hasShrinkwrap":false,"_cnpm_publish_time":1429916522727,"_cnpmcore_publish_time":"2021-12-16T19:35:19.915Z","contributors":[]},"1.0.0":{"name":"gh-release-assets","description":"Upload assets to a GitHub release","version":"1.0.0","author":{"name":"Paul C Pederson","email":"paul.c.pederson@gmail.com"},"bugs":{"url":"https://github.com/paulcpederson/gh-release-assets/issues"},"dependencies":{"async":"^0.9.0","mime":"^1.3.4","progress-stream":"^1.1.1","request":"^2.55.0","util-extend":"^1.0.1"},"devDependencies":{"faucet":"0.0.1","standard":"^3.3.2","tape":"^4.0.0"},"files":["index.js"],"homepage":"https://github.com/paulcpederson/gh-release-assets","keywords":["gh-release","github","release","upload"],"license":"ISC","main":"index.js","repository":{"type":"git","url":"https://github.com/paulcpederson/gh-release-assets.git"},"scripts":{"test":"standard && faucet"},"gitHead":"1e9461b9e2581bd5ec5238297287cb12416a65c3","_id":"gh-release-assets@1.0.0","_shasum":"528121c7acb9f1d85b9c76b17c8f9542b04c9c62","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.1","_npmUser":{"name":"anonymous","email":"paul.c.pederson@gmail.com"},"maintainers":[{"name":"anonymous","email":"bcomnes@gmail.com"},{"name":"anonymous","email":"jagravois@gmail.com"},{"name":"anonymous","email":"paul.c.pederson@gmail.com"}],"dist":{"shasum":"528121c7acb9f1d85b9c76b17c8f9542b04c9c62","size":2886,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/gh-release-assets/-/gh-release-assets-1.0.0.tgz","integrity":"sha512-SW5OJI6+A/csj7xoErAlUNLwqrUWGcvW6lhvvzUo//MJgk0BOCyTUXewY743PoJGb43lkicakoF/kM8bvp7B7A=="},"directories":{},"publish_time":1429827115158,"_hasShrinkwrap":false,"_cnpm_publish_time":1429827115158,"_cnpmcore_publish_time":"2021-12-16T19:35:20.111Z","contributors":[]},"2.0.1":{"name":"gh-release-assets","description":"Upload assets to a GitHub release","version":"2.0.1","author":{"name":"Paul C Pederson","email":"paul.c.pederson@gmail.com"},"bugs":{"url":"https://github.com/ungoldman/gh-release-assets/issues"},"contributors":[{"name":"Nate Goldman","email":"ungoldman@gmail.com"},{"name":"Bret Comnes","email":"bcomnes@gmail.com"},{"name":"Paul C Pederson","email":"paul.c.pederson@gmail.com"}],"dependencies":{"async":"^3.2.0","mime":"^3.0.0","progress-stream":"^2.0.0","pumpify":"^2.0.1","simple-get":"^4.0.0","util-extend":"^1.0.1"},"devDependencies":{"gh-release":"^6.0.0","snazzy":"^9.0.0","standard":"^16.0.2","tap-arc":"^0.3.4","tape":"^5.0.0"},"engines":{"node":">=12"},"homepage":"https://github.com/ungoldman/gh-release-assets","keywords":["gh-release","github","release","upload"],"license":"ISC","main":"index.js","repository":{"type":"git","url":"git+https://github.com/ungoldman/gh-release-assets.git"},"scripts":{"release":"gh-release --owner=ungoldman && npm publish","pretest":"standard | snazzy","test":"tape test/index.js | tap-arc"},"gitHead":"e986a39cec816107fb389932e05a8f96a40ae0e8","_id":"gh-release-assets@2.0.1","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-KrhmYIA/5oQdfEl9vQ2yF6DOM2QOAjpCOsNKFkc7X3dOTefSixttW0ysot3noQ+3XL8NdkdC7z+mqfePzIwexg==","shasum":"d6a1bfe70aca9592980dc30fe14842602005d5b4","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/gh-release-assets/-/gh-release-assets-2.0.1.tgz","fileCount":4,"unpackedSize":7032,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGcYbYdTHWiL3fJR2dsQRAs+dB5AbOAim4yIehKO5o3PAiAP0wNd93OFIjZLFbA6zhXq7CKxGmpDUVrErk4Ikeiqbw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiWJnYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo18Q//c6RPNurRs5tbkNeL68dwG9dT4pKhgJUxwp0OXw0/I63nyrwf\r\nql8TIo3DDP9Ngw125lWmGrrufql40olpIdd5n0Ong7L+6zQoqrbM7RJKqZUg\r\nPneA3ZYIjJex11uT6WAwQqzMSEuF2TvI+eGt91kaz7jbe0NVxRbOcPsMs4Zg\r\nnnKK3onNf0LLsAWRCRgFacoxHtxtz+V6F5RI6sqxwSdvmEg5MaCIVc99gJo5\r\nUd7Jd0WAV4pK5YtgXE6KNll6z3108Nk3nL38wRiyNgdrM+VoOyRJOVwhaTiT\r\n3nkhb5YkSmWeEd2jtGKzW/DR08NDPnf8OKnPRv4va/E+iBr/LlHfN1esUixK\r\nfv4wdXTOCiYR3xsA8TEHynkeq7bIcTN1mCIIwsOuBCt0gnKrCXUCQsPlskc4\r\nbmGAvwePfSChluSMhPhppWWlmPjaEZe8v+PRY1xA/S9L8CppEcb/BbD3YRHq\r\nFzkV+ew+r3dVjT/L2I7dfjte4rxjdW+aJV+6oTN0ch4+BYOj4/j3WY1ztUXU\r\nqsyzo2qFBYsV2HAXhcrMZXiRGbk8/BslVgZjCKCLMwTZV6t5RwTRxQyHiT4e\r\nNqVmCSkekTNhGCkTNHLL3M+pUavb5JrmvySGzTKF+McwPTSu3dEu5mSr7c/n\r\nswuKObBZoHCTe+TkBxh2bS7WHpQ+X4M5hZI=\r\n=hsyo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"anonymous","email":"ungoldman@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"john@scripto.computer"},{"name":"anonymous","email":"bcomnes@gmail.com"},{"name":"anonymous","email":"paul.c.pederson@gmail.com"},{"name":"anonymous","email":"ungoldman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gh-release-assets_2.0.1_1649973720259_0.4391148223075445"},"_hasShrinkwrap":false}},"dist-tags":{"latest":"2.0.1"},"name":"gh-release-assets","time":{"created":"2022-01-26T20:57:51.594Z","modified":"2022-04-14T22:02:15.136Z","2.0.0":"2020-09-15T18:59:16.137Z","1.1.2":"2018-04-28T00:16:19.951Z","1.1.1":"2017-04-11T20:50:58.368Z","1.1.0":"2015-04-24T23:02:02.727Z","1.0.0":"2015-04-23T22:11:55.158Z","2.0.1":"2022-04-14T22:02:00.446Z"},"readme":"# gh-release-assets\n\nUpload assets to a GitHub release. Based on the awesome work of [@remixz](https://github.com/remixz) as part of [publish-release](https://github.com/remixz/publish-release).\n\n[![npm][npm-image]][npm-url]\n[![build][build-image]][build-url]\n[![downloads][downloads-image]][npm-url]\n\n[npm-image]: https://img.shields.io/npm/v/gh-release-assets.svg\n[npm-url]: https://www.npmjs.com/package/gh-release-assets\n[build-image]: https://github.com/ungoldman/gh-release-assets/actions/workflows/tests.yml/badge.svg\n[build-url]: https://github.com/ungoldman/gh-release-assets/actions/workflows/tests.yml\n[downloads-image]: https://img.shields.io/npm/dm/gh-release-assets.svg\n\n## Install\n\n```\nnpm install gh-release-assets\n```\n\n## Usage\n\nPass in the upload url and an array of local files you'd like to upload. If you want to specify a new name for the file once it is uploaded, use an object with a `name` and `path` keys.\n\n```js\nvar ghReleaseAssets = require('gh-release-assets')\n\nghReleaseAssets({\n  url: 'https://uploads.github.com/repos/octocat/Hello-World/releases/1197692/assets{?name}',\n  token: [MY_GITHUB_TOKEN],\n  assets: [\n    '/path/to/foo.txt',\n    '/path/to/bar.zip',\n    {\n      name: 'baz.txt',\n      path: '/path/to/baz.txt'\n    }\n  ]\n}, function (err, assets) {\n  console.log(assets)\n})\n```\n\nGitHub returns the upload url in the correct format after you create a release as `upload_url`. You can also get the upload url from the `releases` endpoint like:\n\n```\ncurl -i https://api.github.com/repos/:owner/:repo/releases\n```\n\nYou can also use a username/password instead of a token by passing an `auth` object:\n\n```js\nvar ghReleaseAssets = require('gh-release-assets')\n\nghReleaseAssets({\n  url: 'https://uploads.github.com/repos/octocat/Hello-World/releases/1197692/assets{?name}',\n  auth: {\n    username: 'CoolGuy'\n    password: 'KeepItSecret'\n  },\n  assets: [\n    '/path/to/foo.txt',\n    '/path/to/bar.zip',\n    {\n      name: 'baz.txt',\n      path: '/path/to/baz.txt'\n    }\n  ]\n}, function (err, assets) {\n  console.log(assets)\n})\n```\n\nEither a `token` or `auth` is required.\n\n`gh-release-assets` also emits the following events:\n\n* `upload-asset` - `{name}` - Emits before an asset file starts uploading. Emits the `name` of the file.\n* `upload-progress` - `{name, progress}` - Emits while a file is uploading. Emits the `name` of the file, and a `progress` object from [`progress-stream`](https://github.com/freeall/progress-stream).\n* `uploaded-asset` - `{name}` - Emits after an asset file is successfully uploaded. Emits the `name` of the file.\n\n## Contributing\n\nContributions welcome! Please read the [contributing guidelines](CONTRIBUTING.md) before opening an issue or making a pull request.\n\n## License\n\n[ISC](LICENSE.md)","users":{}}