{"_id":"npm-to-github","_rev":"632502","name":"npm-to-github","description":"Get the GitHub repository from a npm package","dist-tags":{"latest":"2.1.1"},"maintainers":[{"name":"oliviercoilland","email":"olivier@coilland.fr"}],"time":{"modified":"2021-08-25T09:35:55.000Z","created":"2016-08-31T13:35:11.646Z","2.1.1":"2018-03-20T13:35:34.004Z","2.1.0":"2017-04-18T07:52:23.212Z","2.0.0":"2017-04-17T12:58:52.481Z","1.0.1":"2017-04-11T08:59:32.985Z","1.0.0":"2016-08-31T13:35:11.646Z"},"users":{},"author":{"name":"Olivier Coilland","url":"https://github.com/OlivierCoilland"},"repository":{"type":"git","url":"git+https://github.com/OlivierCoilland/npm-to-github.git"},"versions":{"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","size":6379,"noattachment":false,"key":"/npm-to-github/-/npm-to-github-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/npm-to-github/download/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,"publish_time":1521552934004,"_cnpm_publish_time":1521552934004},"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","size":3227,"noattachment":false,"key":"/npm-to-github/-/npm-to-github-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/npm-to-github/download/npm-to-github-2.1.0.tgz"},"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":{},"publish_time":1492501943212,"_hasShrinkwrap":false,"_cnpm_publish_time":1492501943212},"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","size":2941,"noattachment":false,"key":"/npm-to-github/-/npm-to-github-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/npm-to-github/download/npm-to-github-2.0.0.tgz"},"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":{},"publish_time":1492433932481,"_cnpm_publish_time":1492433932481,"_hasShrinkwrap":false},"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","size":2576,"noattachment":false,"key":"/npm-to-github/-/npm-to-github-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/npm-to-github/download/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":{},"publish_time":1491901172985,"_hasShrinkwrap":false,"_cnpm_publish_time":1491901172985},"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","size":2561,"noattachment":false,"key":"/npm-to-github/-/npm-to-github-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/npm-to-github/download/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":{},"publish_time":1472650511646,"_cnpm_publish_time":1472650511646,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/OlivierCoilland/npm-to-github#readme","bugs":{"url":"https://github.com/OlivierCoilland/npm-to-github/issues"},"license":"MIT"}