@feizheng/next-git-url

1.0.3 • Public • Published

next-git-url

Get git urls.

version license size download

installation

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

apis

property description
github Check if is github.
pages Gh_pages.
url Git url in its source.
ssh ssh git url.
https https git url.
mr Get 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @feizheng/next-git-url

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

7.27 kB

Total Files

5

Last publish

Collaborators

  • afeiship