1.0.6 • Published 7 years ago

git-slug v1.0.6

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

Git-Slug

install

npm i -S git-slug

use

const gitSlug = require('git-slug');
const pathResolve = require('path').resolve;

gitSlug(pathResolve(__dirname, './')).then(console.log).catch(console.error);

result

{
  host: 'github.com',
  owner: 'user',
  repo: 'repo',
  branch: 'master'
}

from

data parse from git remote show -n <remote-tag> and git branch -vV

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago