nodegitlib

1.0.2 • Public • Published

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 = require('nodegitlib');
 
git.isGit(); // true or false of current working directory
git.isGit('any/git/repo'); // true or false
 
git.currentBranch(); // false or git current branch name of current working directory
git.currentBranch('any/git/repo'); // false or git current branch name

LICENSE

MIT © Sayed Tauseef Naqvi

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    114
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    114
  • 1.0.1
    1
  • 1.0.0
    1
  • 0.0.1
    2

Package Sidebar

Install

npm i nodegitlib

Weekly Downloads

118

Version

1.0.2

License

MIT

Unpacked Size

5.19 kB

Total Files

6

Last publish

Collaborators

  • tauseefnaqvi