# git-prestine

> A function that returns a rejected promise if you're not on a clean, up-to-date master branch

Latest version **0.2.1** (published 2017-07-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install git-prestine
pnpm add git-prestine
yarn add git-prestine
bun add git-prestine
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2017-07-05 |
| First published | 2017-05-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Gabe Scholz |
| Maintainers | garbles |

## Links

- npm: https://www.npmjs.com/package/git-prestine
- npm.io page: https://npm.io/package/git-prestine

## Dependencies (3)

- [pkg-up](https://npm.io/package/pkg-up.md) ^2.0.0
- [through2](https://npm.io/package/through2.md) ^2.0.3
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.8

## Recent versions

- 0.2.1 (latest) — 2017-07-05
- 0.2.0 — 2017-05-14
- 0.1.3 — 2017-05-14
- 0.1.2 — 2017-05-14
- 0.1.1 — 2017-05-14
- 0.1.0 — 2017-05-14

## README

### git-prestine

A function that returns a rejected promise if you're not on a clean, up-to-date master branch

### Install

```
yarn install git-prestine
```

### Usage

To use just require and call

```js
const prestine = require('git-prestine');

await prestine(); // throws if not clean, up-to-date, master
```

There is also a Gulp plugin for build scripts.

```js
const gulp = require('gulp');
const webpack = require('gulp-webpack');
const prestine = require('git-prestine/gulp');

gulp.task('build', function() {
  return gulp.src('./src/index.js')
    .pipe(prestine()) // task fails if not clean, up-to-date, master
    .pipe(webpack())
    .pipe(gulp.dest('dist/'));
});
```

---
_Source: https://npm.io/package/git-prestine · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
