1.0.6 • Published 8 years ago

git-slug v1.0.6

Weekly downloads
1
License
ISC
Repository
github
Last release
8 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

8 years ago

1.0.5

8 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago