{"name":"ghutils","version":"3.2.5","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":"~2.1.0","xtend":"~4.0.1"},"scripts":{"test":"tape test.js"},"devDependencies":{"tape":"~4.9.0"},"gitHead":"80d6e4732f3b976a8a8e2fa81a32c45e41f97d52","bugs":{"url":"https://github.com/rvagg/ghutils/issues"},"homepage":"https://github.com/rvagg/ghutils#readme","_id":"ghutils@3.2.5","_npmVersion":"6.1.0","_nodeVersion":"10.1.0","_npmUser":{"name":"ralphtheninja","email":"ralphtheninja@riseup.net"},"dist":{"integrity":"sha512-vwLkt4BLabeXYIQam5ROGkXhV4YA/Nx0HCYRwxjCPDpKrY6TBY6lBp0/NslGdqtKjOM2RSUpVvS6Z1qvbziAfg==","shasum":"b5c9d1837f92242795a40a381439cb56ba2c8060","tarball":"http://registry-npm.ywwl.com/ghutils/download/ghutils-3.2.5.tgz","fileCount":6,"unpackedSize":15594,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbLRykCRA9TVsSAnZWagAAxZoP/1UO9NLI6ExMg26D5PDc\nQym94+WfeN4j6BfUz/276WyUPrhavcYj+nMvTY4FzCE/oKHQxmuVm1uLxePZ\nbH4XOXyVV6TMuS0AmCn4NFThcSGmOiptcVGi0FlSKVcwyvcIIwy4SnsWhiW8\nb5inMfhl7ns6HUGDTvP4yQAE+vMutiIBsNjf7Hf19lTkfeTRcIrQ+BX2dAs6\n92bwwqs7hSC7aanRU+ZtRzuA2gnc11AbHBN8Kkd12oM+I+Tfc5ePh4fMBEO2\nCXkN3PJkKX7kMzqwNOWUrKaHTV3rV39K2fWI7kHgwCBs/d+2LTBG6hWdSC4H\nmCecmqhe2eIGUFRD3FMzDjfucdW4ptGtlWEvaOZj6hsVnpaEBCe7jc8nI07g\nZA9iVRHlMtiJURZleOot03bteiE8fVNQXNF/zSHRGsHl6CIAcxQ+ir7VkN8e\n4JHwuYWWBug87gIy9xXmpYg+3F/ORgM/IYUjcChwn3Z6CaepG+StTyze8o7T\nJh+VTTpkmlZTjXOprtFV1fK3zC5pDl8i1vBN9TqZRHVfeOV/yoOwKD2wvGBh\nnkDmf0eNktYckM2HEyolEf80kQ7QVyvP9Xnlq4WQuY80R1zVSAV9OmgrassX\nVFyIc5bcM6vovyRkV+MBXL3q84WZu7vkV3wKnaGE8FHr6ij85lZUjzQEO1nG\ncU+4\r\n=LAc2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFiLBVlD8xcj7pZdi/1gXRGU0UO/8xu0enxjqlurqgxjAiEAuNqwRI7cb5m82QxEB/avoUCEI33bX0NMb6L9LrtL/G0="}],"size":4080,"noattachment":false,"key":"/ghutils/-/ghutils-3.2.5.tgz"},"maintainers":[{"email":"ralphtheninja@riseup.net","name":"ralphtheninja"},{"email":"r@va.gg","name":"rvagg"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ghutils_3.2.5_1529683107739_0.6926222404546878"},"_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":1529683108054,"_cnpm_publish_time":1529683108054,"dist-tags":{"latest":"5.0.17"}}