git-needs-push

1.0.0 • Public • Published

git-needs-push

Build Status

Check synchronously if a git repository needs to push. If a branch is just local it will be true (as a push is required)

Installation

$ npm i git-needs-push --save

or

$ yarn add git-needs-push

Usage

const needsPush = require('git-needs-push');
 
needsPush(); // true or false of process.cwd()
needsPush('any/git/repo'); // true or false

LICENSE

MIT © Jan Peer Stöcklmair

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    9
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    9

Package Sidebar

Install

npm i git-needs-push

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • jpeer