is-git-added

1.0.2 • Public • Published

is-git-added

Build Status Coverage Status

Checks synchronously if files are added in a git repository

Installation

$ npm i is-git-added --save

or

$ yarn add is-git-added

Usage

  • false: Nothing is added/in the HEAD, or it is no git repository
  • true: Changes are ready to commit. Files are added.
const isGitAdded = require('is-git-added');
 
isGitAdded(); // true or false of process.cwd()
isGitAdded('any/git/repo'); // true or false

LICENSE

MIT © Jan Peer Stöcklmair

Package Sidebar

Install

npm i is-git-added

Weekly Downloads

82

Version

1.0.2

License

MIT

Last publish

Collaborators

  • jpeer