{"name":"npm-to-github","version":"1.0.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 .","test":"npm run lint"},"dependencies":{"npm-registry-client":"8.1.0","npmlog":"4.0.2","octonode":"0.7.10"},"devDependencies":{"eslint":"3.19.0"},"gitHead":"dbe16ca4431bdd37586012ff9fab4d019fc96b33","_id":"npm-to-github@1.0.1","_shasum":"6a4dc6599fba697d0e42fa97182fc1e1ff2eb991","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"oliviercoilland","email":"olivier@coilland.fr"},"dist":{"shasum":"6a4dc6599fba697d0e42fa97182fc1e1ff2eb991","tarball":"http://registry-npm.ywwl.com/npm-to-github/download/npm-to-github-1.0.1.tgz","integrity":"sha512-Ikp3ZWMV407HgtIDAlSem7A6vqRI5M+U1gdf3LBNfFtBdkxM0dFQav9CeAbYp3TJ7d5SFactLgrm4AjnAEt27w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDS4vbWp7x8sqec46C/XqRDkYnt3zhjSZSyhm4gFGqaZAiBQOTLBpnLH8O9lAzaOJ++KKQ+jxL6Ds/b05J+Dls1UQw=="}],"size":2576,"noattachment":false,"key":"/npm-to-github/-/npm-to-github-1.0.1.tgz"},"maintainers":[{"name":"oliviercoilland","email":"olivier@coilland.fr"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/npm-to-github-1.0.1.tgz_1491901172308_0.0016250016633421183"},"directories":{},"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":1491901172985,"_cnpm_publish_time":1491901172985,"dist-tags":{"latest":"2.1.1"}}