@garage-catalyst/git-slug
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @garage-catalyst/git-slug

Weekly Downloads

1

Version

1.0.9

License

ISC

Unpacked Size

191 kB

Total Files

14

Last publish

Collaborators

  • mjperrin
  • seansund