1.0.9 • Published 5 years ago

@garage-catalyst/git-slug v1.0.9

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

Git-Slug

Cloned from https://github.com/AntSworD/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