1.0.2 • Published 8 years ago
is-git-added v1.0.2
is-git-added
Checks synchronously if files are added in a git repository
Installation
$ npm i is-git-added --saveor
$ yarn add is-git-addedUsage
false: Nothing is added/in the HEAD, or it is no git repositorytrue: 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 falseLICENSE
MIT © Jan Peer Stöcklmair