@ong/git-info
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

@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 */)

Readme

Keywords

Package Sidebar

Install

npm i @ong/git-info

Weekly Downloads

0

Version

1.1.3

License

MIT

Unpacked Size

5.21 kB

Total Files

9

Last publish

Collaborators

  • ong