package-repo-url

1.0.4 • Public • Published

package-repo-url

Returns GitHub repository URL based on package.json.

Installation

npm install package-repo-url

Usage

const packageRepoUrl = require('package-repo-url');

console.log(packageRepoUrl());
// -> https://github.com/sapegin/package-repo-url

console.log(packageRepoUrl(require('./somewhere/package.json')));
// -> https://github.com/shomeorg/somepackage

Changelog

The changelog can be found on the Releases page.

Contributing

Everyone is welcome to contribute. Please take a moment to review the contributing guidelines.

Authors and license

Artem Sapegin and contributors.

MIT License, see the included License.md file.

/package-repo-url/

    Package Sidebar

    Install

    npm i package-repo-url

    Weekly Downloads

    2,742

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    4.16 kB

    Total Files

    4

    Last publish

    Collaborators

    • sapegin