1.1.3 • Published 5 years ago

@ong/git-info v1.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@ong/git-info

Get the git repo HEAD info.

CircleCI branch npm (scoped) GitHub

Usage

npm install @ong/git-info
import gitInfo from '@ong/git-info'
const {
  repo,    // the repo to get info
  status,  // whether or not correctly get the info, true for success false for fail
  message, // empty or error message
  branch,  // current branch
  hash     // commit hash code
} = gitInfo(hashLen/* hash length, default is 8*/, path/* repo path, default is current working dir */)
1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago