{"name":"npm-to-github","version":"2.1.1","description":"Get the GitHub repository from a npm package","keywords":["github","repository","npm","package"],"homepage":"https://github.com/OlivierCoilland/npm-to-github#readme","bugs":{"url":"https://github.com/OlivierCoilland/npm-to-github/issues"},"license":"MIT","author":{"name":"Olivier Coilland","url":"https://github.com/OlivierCoilland"},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/OlivierCoilland/npm-to-github.git"},"scripts":{"lint":"eslint .","lint:fix":"eslint --fix .","pretest":"npm run lint","test":"mocha"},"dependencies":{"npm-registry-client":"8.5.1","npmlog":"4.1.2","octonode":"0.9.2"},"devDependencies":{"eslint":"4.19.0","mocha":"5.0.4"},"gitHead":"b23a9188ece53289e2f299d4b82bfadb7aa858eb","_id":"npm-to-github@2.1.1","_shasum":"aaf4d85e8a9e4f2d99045085265dc4224edeb705","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"oliviercoilland","email":"olivier@coilland.fr"},"dist":{"shasum":"aaf4d85e8a9e4f2d99045085265dc4224edeb705","tarball":"http://registry-npm.ywwl.com/npm-to-github/download/npm-to-github-2.1.1.tgz","fileCount":10,"unpackedSize":26944,"integrity":"sha512-pYoLfpHDgm5LG2607SHut2RjO9DP1JnEuA1LxibZD2rajd/lwwJZ4UqZ98RrGVUS2IDsam/NKjvrMc96V9ORvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtW5DkjbI+HjRiB7mkvw01lqKYaSgFh2bgK5oFOOR6EQIhAKBoISXZk0aJcsMSeL3OX/Ljj4lcsIe0l/TOYsO/wN1p"}],"size":6379,"noattachment":false,"key":"/npm-to-github/-/npm-to-github-2.1.1.tgz"},"maintainers":[{"name":"oliviercoilland","email":"olivier@coilland.fr"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-to-github_2.1.1_1521552933859_0.24176919542852549"},"_hasShrinkwrap":true,"readme":"# npm-to-github\n\nGet the GitHub repository from a npm package.\n\n## Installation\n\n```bash\n$ npm install npm-to-github --save\n```\n\n## Usage\n\n```js\nconst npmToGitHub = require('npm-to-github');\n```\n\n### Get repository name\n\n```js\nnpmToGitHub.getRepositoryName('npm-to-github')\n.then((name) => {\n    console.log(name);\n})\n.catch((error) => {\n    console.log(error);\n});\n```\n\n### Get repository data\n\n```js\nnpmToGitHub.getRepository('npm-to-github')\n.then((data) => {\n    console.log(data);\n})\n.catch((error) => {\n    console.log(error);\n});\n```\n\n## GitHub API rate limit\n\nGitHub API is limited to 60 requests, after which you get an error:\n\n`API rate limit exceeded for a.b.c.d. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)`\n\nA work around is to authenticate. npm-to-github supports [token based authentication](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/). The token doesn't need any scope or permission.\n\n```js\nconst npmToGitHub = require('npm-to-github');\nnpmToGitHub.setToken('d5ea195..........................4bde396');\n```\n\n## Incompatible API changes! (f34r)\n\nIn *1.x* errors where not really errors, only a message.\nIn *2.x* errors are full `Error` objects.\n\n## License\n\nReleased under the [MIT license](https://tldrlegal.com/license/mit-license).\n","publish_time":1521552934004,"_cnpm_publish_time":1521552934004,"dist-tags":{"latest":"2.1.1"}}