git-urls
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

npm AppVeyor

git-urls

Get online link of file with git remote URL(support Github, GitLab, Bitbucket, VSTS, DevOps)

Install

npm install git-urls

Usage example

import GitUrls from "git-urls";

const f = async () => {
    return await GitUrls.getUrlsAsync(__filename);
};

f().then(linkMap => {
    for (const [remoteName, link] of linkMap) {
        console.log(`${remoteName}: ${link}`);
    }
});

Readme

Keywords

Package Sidebar

Install

npm i git-urls

Weekly Downloads

16

Version

2.0.2

License

MIT

Unpacked Size

89.4 kB

Total Files

67

Last publish

Collaborators

  • qinezh