New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

git-get-status

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-get-status

Small node.js utility for parsing git status --porcelain

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

git-get-status

A small node.js utility for parsing git status --porcelain.

Install

$ npm install git-get-status

Usage

var git_get_status = require('git-get-status');

git_get_status(function(err, result){
    var status = result;
});

The status object

{
   // the local branch...
   local_branch: 'master',
   
   // the remote branch, if any...
   remote_branch: 'origin/master',
   
   // whether and by how many commits the local branch is 
   // ahead or behind the remote. If the local and remote
   // branch are caught up, this will be null
   remote_diff: 'ahead 1',
   
   // if there are unadded or uncommited local changes,
   // clean will be false. Otherwise clean will be true.
   clean: true,
   
   // a list of unadded or uncommited files
   files: []
}

Keywords

git

FAQs

Package last updated on 27 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts