1.0.3 • Published 4 years ago

@feizheng/next-git-url v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

next-git-url

Get git urls.

version license size download

installation

npm install -S @feizheng/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 NxGitUrl from '@feizheng/next-git-url';

const url = 'git@github.com:afeiship/next-git-url.git';
const gitUrl = new NxGitUrl(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.

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago