0.3.3 • Published 6 years ago

git-status-utils v0.3.3

Weekly downloads
48
License
MIT
Repository
github
Last release
6 years ago

git-status-utils

javascript utilities for parsing information from git status command

Installation

npm install --save git-status-utils

Usage

GitStatusUtils = require('git-status-utils')
console.log(GitStatusUtils.getStatus())

Should output a javascript object that looks like below.
See API Docs on Github.io for the current details.

{
  branch: "master"
  remote: "origin/master"
  commitsAheadBehind: -5
  stagedChanges: [
    "new file: docs/api/index.html"
    "modified: package.json"
    ...
  ]
  unstagedChanges: [{
    "deleted: relative/path/to/file.ext"
    ...
  }]
  untrackedFiles: [
    "path/to/file.txt"
    "another-path/to/file.txt"
    ...
  ]
}
0.3.3

6 years ago

0.3.0

8 years ago

0.1.1

8 years ago