npm-to-github
Get the GitHub repository from a npm package.
Installation
$ npm install npm-to-github --save
Usage
const npmToGitHub = ;
Get repository name
npmToGitHub;
Get repository data
npmToGitHub;
GitHub API rate limit
GitHub API is limited to 60 requests, after which you get an error:
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.)
A work around is to authenticate. npm-to-github supports token based authentication. The token doesn't need any scope or permission.
const npmToGitHub = ;npmToGitHub;
Incompatible API changes! (f34r)
In 1.x errors where not really errors, only a message.
In 2.x errors are full Error
objects.
License
Released under the MIT license.