https://github.com/jpeer264/node-git-needs-pull
Check synchronously if a git repository needs to pull
https://github.com/jpeer264/node-git-needs-pull
git is-git needs-pull nodejs pull
Last synced: 3 months ago
JSON representation
Check synchronously if a git repository needs to pull
- Host: GitHub
- URL: https://github.com/jpeer264/node-git-needs-pull
- Owner: JPeer264
- License: mit
- Created: 2017-05-15T16:03:24.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T05:18:30.000Z (over 2 years ago)
- Last Synced: 2024-10-15T10:01:04.933Z (9 months ago)
- Topics: git, is-git, needs-pull, nodejs, pull
- Language: Shell
- Homepage: https://www.npmjs.com/package/git-needs-pull
- Size: 1.38 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# git-needs-pull
[](https://travis-ci.com/JPeer264/node-git-needs-pull)
[](https://ci.appveyor.com/project/JPeer264/node-git-needs-pull/branch/master)
[](https://coveralls.io/github/JPeer264/node-git-needs-pull?branch=master)Check synchronously if a git repository needs to pull.
## Installation
```sh
$ npm i git-needs-pull
```
or
```sh
$ yarn add git-needs-pull
```## Usage
```js
const needsPull = require('git-needs-pull');needsPull(); // true or false of process.cwd()
needsPull('any/git/repo'); // true or false
```## LICENSE
MIT © [Jan Peer Stöcklmair](https://www.jpeer.at)