{"name":"ghutils","version":"4.0.0","description":"A collection of utility functions for dealing with the GitHub API","main":"ghutils.js","author":{"name":"Rod","email":"rod@vagg.org","url":"http://r.va.gg/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/rvagg/ghutils.git"},"dependencies":{"jsonist":"~3.0.1"},"scripts":{"lint":"standard *.js","test":"npm run lint && tape test.js"},"devDependencies":{"standard":"~14.3.1","tape":"~4.11.0"},"gitHead":"b36a73611d7a7aa049e1d320afa5c05670c132c3","bugs":{"url":"https://github.com/rvagg/ghutils/issues"},"homepage":"https://github.com/rvagg/ghutils#readme","_id":"ghutils@4.0.0","_nodeVersion":"12.12.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-WRme8qe6SX0WCN1cY9F4hE8/dhjZti2q7i7cDuT0kV7PZZrGceFRNP5ZSQM1+RjHpcqvODQi5YSZSsqG+Yk3zQ==","shasum":"7da12d0d1cc88778b56fc46d8ed6c3f5bf9ad8fc","tarball":"http://registry-npm.ywwl.com/ghutils/download/ghutils-4.0.0.tgz","fileCount":7,"unpackedSize":15580,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdrDv9CRA9TVsSAnZWagAAI10QAI9mrPYmcColwwAPtW8A\nqeT+8mV4ZX1BxWJfsuLfwXakyphIMpSZhh8CTALxnBRODkngKxinRnBGoDts\nRCdG8pWXdms763GobnVa79F6Cnsuyvig197RxCsT5KZrup8u5ailkDFp00Yl\nOAvoXh9xar0lJUJQs3apbJlTLvDcZqNK/vaLlUxFYH1xw0FhzVh5/suPpXdV\nvtF+FUceIaJ9/4BK3aLQDmDMrrDxPMDKkMQXsVEhFVwGbUM/SCsTqrGdIhh1\n2kYySggQpgMaIkHYZvm8VvtuE2HUyEuvnBDe9MG8gKdOT8vGVzBEL91iMSjJ\nBq+b7QsM8c0mVWyNBA7MyTt2PlaP3enptT6wtcrVYFAG/ryPxiw14XRUJxIo\naL2xsqMqgx7J1OTXwhWTZIYq3ZZn/oxVmmEi+qAc57miIWq1CTnD0aP93rce\nMRt1raHsofiJfLaWx6llzNaULLyNCswEVlSPtbmicvXMe9aG6RtJDZg0qUoI\nBJPsZ/IdQo18aGqdYsV/nzv+XNpQgsAD4dOFxvO8dn5GRs8kwbner86Rbc9K\n04suCrk7fM654yKwyHQOXRpn5BH7rBlezINoLosHkBtyjJj5IuQCTfcJ2w0C\nRug9vYWVE6PkLBtNvzvWQoet0K1ePMY/3ezLomukwEYyYPLYMcDAI7PJ8xtG\nXTXD\r\n=E/OJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCt8Sfv+fyfYlkYSJXEo61uSTPYSS4/08+riP1CcuQJJgIgbffz/XnDybjm2mfJ6A2xYbpSKPrU+/GKgmDcdpni8+Q="}],"size":4352,"noattachment":false,"key":"/ghutils/-/ghutils-4.0.0.tgz"},"maintainers":[{"email":"ralphtheninja@riseup.net","name":"ralphtheninja"},{"email":"r@va.gg","name":"rvagg"}],"_npmUser":{"name":"rvagg","email":"r@va.gg"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ghutils_4.0.0_1571568636692_0.17696957988457052"},"_hasShrinkwrap":false,"readme":"# ghutils\n\n[![Build Status](https://api.travis-ci.com/rvagg/ghutils.svg?branch=master)](https://travis-ci.com/rvagg/ghutils)\n\n**A collection of utility functions for dealing with the GitHub API**\n\n[![NPM](https://nodei.co/npm/ghissues.svg)](https://nodei.co/npm/ghissues/)\n\nUsed by:\n\n* [ghissues](https://github.com/rvagg/ghissues) - a Node.js library to interact with the GitHub Issues API\n* [ghpulls](https://github.com/rvagg/ghpulls) - a Node.js library to interact with the GitHub Pull Request API\n* [ghrepos](https://github.com/rvagg/ghrepos) - a Node.js library to interact with the GitHub Repos API\n* [ghusers](https://github.com/rvagg/ghusers) - a Node.js library to interact with the GitHub Users API\n* [ghteams](https://github.com/rvagg/ghteams) - a Node.js library to interact with the GitHub Teams API\n* [ghreleases](https://github.com/ralphtheninja/ghreleases) - a Node.js library to interact with the GitHub Releases API\n\n## API\n\n### makeOptions(auth, options)\n\nHelper to make options to pass to [jsonist](http://github.com/rvagg/jsonist) given a GitHub auth from [ghauth](https://github.com/rvagg/ghauth) and any additional options.\n\n### handler(callback)\n\nTakes a JSON response from the GitHub API and turns any errors and applies them properly to the `callback`.\n\n### ghpost(auth, url, data, options, callback)\n\nMake a GitHub API compatible POST request to the given URL via [jsonist](http://github.com/rvagg/jsonist), uses `makeOptions()` to extend the options. Requires a GitHub auth from [ghauth](https://github.com/rvagg/ghauth) and any additional options.\n\n### ghget(auth, url, options, callback)\n\nMake a GitHub API compatible GET request to the given URL via [jsonist](http://github.com/rvagg/jsonist), uses `makeOptions()` to extend the options. Requires a GitHub auth from [ghauth](https://github.com/rvagg/ghauth) and any additional options.\n\n### lister(auth, urlbase, options, callback)\n\nGiven a paginated url resource, recursively fetch all available pages of data and return an array containing the complete list.\n\n### apiRoot\n\nThe api root url `'https://api.github.com'`.\n\n## License & Copyright\n\n**ghutils** is Copyright (c) 2015 Rod Vagg [@rvagg](https://twitter.com/rvagg) and licensed under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.\n","publish_time":1571568636874,"_cnpm_publish_time":1571568636874,"dist-tags":{"latest":"5.0.17"}}