{"_id":"npm-to-github","_rev":"7-dd0054343f0254aae8a1e8b232c28e92","name":"npm-to-github","description":"Get the GitHub repository from a npm package","dist-tags":{"latest":"2.1.1"},"versions":{"1.0.0":{"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":"https://registry.npmjs.org/npm-to-github/-/npm-to-github-1.0.0.tgz","integrity":"sha512-6mZ4vC9nj/4P5xm4bOvYFbM/3CssvP1q8J1LRTv+ndt2SQAoUkrf0DEGtSTYNaOPCAGH17xuWS2QtW5tz+Hy+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHDJrT5IVPHOmpnF43rQMx9evh8Uo9EO9FzOs5r7JpCDAiEA1lmonk7gQwPZ9W6HJCdRQX0k2nEwhNc2P8jk8soV1zI="}]},"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":{}},"1.0.1":{"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":"https://registry.npmjs.org/npm-to-github/-/npm-to-github-1.0.1.tgz","integrity":"sha512-Ikp3ZWMV407HgtIDAlSem7A6vqRI5M+U1gdf3LBNfFtBdkxM0dFQav9CeAbYp3TJ7d5SFactLgrm4AjnAEt27w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDS4vbWp7x8sqec46C/XqRDkYnt3zhjSZSyhm4gFGqaZAiBQOTLBpnLH8O9lAzaOJ++KKQ+jxL6Ds/b05J+Dls1UQw=="}]},"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":{}},"2.0.0":{"name":"npm-to-github","version":"2.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 .","pretest":"npm run lint","test":"mocha"},"dependencies":{"npm-registry-client":"8.1.1","npmlog":"4.0.2","octonode":"0.7.11"},"devDependencies":{"eslint":"3.19.0","mocha":"3.2.0"},"gitHead":"4878d9017d5df14a2ed44543be5a25015d96e2fd","_id":"npm-to-github@2.0.0","_shasum":"e179c01e01d2a0d64b1a8d80728ff68d8a900ebc","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"oliviercoilland","email":"olivier@coilland.fr"},"dist":{"shasum":"e179c01e01d2a0d64b1a8d80728ff68d8a900ebc","tarball":"https://registry.npmjs.org/npm-to-github/-/npm-to-github-2.0.0.tgz","integrity":"sha512-8q34S5gvepqPllNRA6Ug0/bkVuLAWZhyAwCkN4KCPcx112V6qMZB2+/q7+i67dHYHvEwoqUZ/+eRm1EJBBwstg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICSaFK+AvPci7YQL1jtQQbKakzDOWr8bBwWxLyKgLYl4AiEA6Mc+4UdR/uJ7qLMIF4xNuquA4L9EAQJQOWNz9KqMuvA="}]},"maintainers":[{"name":"oliviercoilland","email":"olivier@coilland.fr"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/npm-to-github-2.0.0.tgz_1492433930641_0.780750832753256"},"directories":{}},"2.1.0":{"name":"npm-to-github","version":"2.1.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 .","pretest":"npm run lint","test":"mocha"},"dependencies":{"npm-registry-client":"8.1.1","npmlog":"4.0.2","octonode":"0.7.11"},"devDependencies":{"eslint":"3.19.0","mocha":"3.2.0"},"gitHead":"7c1fb36d94b1b441fe654acf32571ca3c7529a1c","_id":"npm-to-github@2.1.0","_shasum":"ee043527450d0d8246ac3f9e6cd5f5f48178bff6","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"oliviercoilland","email":"olivier@coilland.fr"},"dist":{"shasum":"ee043527450d0d8246ac3f9e6cd5f5f48178bff6","tarball":"https://registry.npmjs.org/npm-to-github/-/npm-to-github-2.1.0.tgz","integrity":"sha512-16zMmSLS1c5VhqOQc8+wS416pN9smSv76UPnX1XXGhz/OVO1ChTRYBOs1K7UfEr/ASJJLX/9PtjDmqE78/1k7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDa0oqMj9DqMC1lIbXhv9ljOfJ5Xo0XbyzcN08FqZLibAiAVxbIvGNVsLIyfdgcOcTJOHj+Zt9WL17h96siO/wkW4w=="}]},"maintainers":[{"name":"oliviercoilland","email":"olivier@coilland.fr"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/npm-to-github-2.1.0.tgz_1492501942623_0.3251655634958297"},"directories":{}},"2.1.1":{"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":"https://registry.npmjs.org/npm-to-github/-/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"}]},"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","maintainers":[{"name":"oliviercoilland","email":"olivier@coilland.fr"}],"time":{"modified":"2022-06-22T09:35:14.059Z","created":"2016-08-31T13:35:11.646Z","1.0.0":"2016-08-31T13:35:11.646Z","1.0.1":"2017-04-11T08:59:32.985Z","2.0.0":"2017-04-17T12:58:52.481Z","2.1.0":"2017-04-18T07:52:23.212Z","2.1.1":"2018-03-20T13:35:34.004Z"},"homepage":"https://github.com/OlivierCoilland/npm-to-github#readme","keywords":["github","repository","npm","package"],"repository":{"type":"git","url":"git+https://github.com/OlivierCoilland/npm-to-github.git"},"author":{"name":"Olivier Coilland","url":"https://github.com/OlivierCoilland"},"bugs":{"url":"https://github.com/OlivierCoilland/npm-to-github/issues"},"license":"MIT","readmeFilename":"README.md"}