{"name":"npm-to-github","version":"1.0.0","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":"7.1.2","npmlog":"4.0.0","octonode":"0.7.6"},"devDependencies":{"eslint":"3.4.0"},"gitHead":"0e281927135eb49b979c53e1de99334d557946c6","_id":"npm-to-github@1.0.0","_shasum":"3a86166fe212a0548d43fa0d49ef4649d6620a34","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.3","_npmUser":{"name":"oliviercoilland","email":"olivier@coilland.fr"},"dist":{"shasum":"3a86166fe212a0548d43fa0d49ef4649d6620a34","tarball":"http://registry-npm.ywwl.com/npm-to-github/download/npm-to-github-1.0.0.tgz","integrity":"sha512-6mZ4vC9nj/4P5xm4bOvYFbM/3CssvP1q8J1LRTv+ndt2SQAoUkrf0DEGtSTYNaOPCAGH17xuWS2QtW5tz+Hy+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHDJrT5IVPHOmpnF43rQMx9evh8Uo9EO9FzOs5r7JpCDAiEA1lmonk7gQwPZ9W6HJCdRQX0k2nEwhNc2P8jk8soV1zI="}],"size":2561,"noattachment":false,"key":"/npm-to-github/-/npm-to-github-1.0.0.tgz"},"maintainers":[{"name":"oliviercoilland","email":"olivier@coilland.fr"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/npm-to-github-1.0.0.tgz_1472650509931_0.262390379793942"},"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":1472650511646,"_cnpm_publish_time":1472650511646,"dist-tags":{"latest":"2.1.1"}}