get-package-github-url
Get the github URL of a npm package
Install
npm install get-package-github-url
or
yarn add get-package-github-url
Usage
// a sample npm package // or you can use it with async/awaitasync { const githubUrl = await // ...}
API
getPackageGithubUrl(packageName)
packageName
Type: string
The name of a npm package. It corresponds to the field name
of the package.json
.
It returns null
if the github url is not found.
License
MIT © Marco Fugaro