nodegitlib
A tool to play with git within node project
Installation
$ npm i nodegitlib --save
or
$ yarn add nodegitlib
Usage
Returns:
- Boolean
false
: It is not a git repository - String: The branch name
const git = ; git; // true or false of current working directorygit; // true or false git; // false or git current branch name of current working directorygit; // false or git current branch name
LICENSE
MIT © Sayed Tauseef Naqvi