pkg-json-git-repo

Get the Git repo out of a package.json

Usage no npm install needed!

<script type="module">
  import pkgJsonGitRepo from 'https://cdn.skypack.dev/pkg-json-git-repo';
</script>

README

pkg-json-git-repo npm version Build status Coverage status Dependency Status

Get the Git repo out of a package.json.

Installation

npm install pkg-json-git-repo

Usage

const pkgJsonGitRepo = require('pkg-json-git-repo');

pkgJsonGitRepo('/path/to/package.json')
  .then(console.log)
  .catch(console.error);
// git+https://github.com/alefteris/pkg-json-git-repo.git

License

MIT