1.1.1 • Published 2 months ago

@jswork/next-git-url v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

next-git-url

Get git urls.

version license size download

installation

npm install -S @jswork/next-git-url

apis

propertydescription
githubCheck if is github.
pagesGh_pages.
urlGit url in its source.
sshssh git url.
httpshttps git url.
mrGet merge request url(only support gitlab).

usage

import '@jswork/next-git-url';

const url = 'git@github.com:afeiship/next-git-url.git';
const gitUrl = new nx.GitUrl(url);
const { github, pages, url, ssh, https } = gitUrl;

// true
// https://afeiship.github.io/next-git-url/
// git@github.com:afeiship/next-git-url.git
// https://github.com/afeiship/next-git-url.git
// https://github.com/afeiship/next-git-url

license

Code released under the MIT license.