# gulp-rev-napkin

> Remove gulp-rev or gulp-rev-all file originals

Latest version **0.1.0** (published 2014-10-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-rev-napkin
pnpm add gulp-rev-napkin
yarn add gulp-rev-napkin
bun add gulp-rev-napkin
```

## 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.1.0 |
| Published | 2014-10-29 |
| First published | 2014-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Franky Martinez |
| Maintainers | frankymartz |
| Keywords | gulpplugin, gulp, rev, revision, hash, delete, del, remove, trash, unlink, clean, rm |

## Links

- npm: https://www.npmjs.com/package/gulp-rev-napkin
- Repository: https://github.com/FrankyMartz/gulp-rev-napkin
- Issues: https://github.com/FrankyMartz/gulp-rev-napkin/issues
- npm.io page: https://npm.io/package/gulp-rev-napkin

## Dependencies (3)

- [rimraf](https://npm.io/package/rimraf.md) ^2.2.8
- [through2](https://npm.io/package/through2.md) ^0.6.3
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2014-10-29

## README

[![Build Status](https://travis-ci.org/FrankyMartz/gulp-rev-napkin.svg)](https://travis-ci.org/FrankyMartz/gulp-rev-napkin)
[![Dependencies](https://david-dm.org/frankymartz/gulp-rev-napkin.svg)](https://david-dm.org/frankymartz/gulp-rev-napkin)
[![Coverage Status](https://img.shields.io/coveralls/FrankyMartz/gulp-rev-napkin.svg)](https://coveralls.io/r/FrankyMartz/gulp-rev-napkin)

# [gulp](https://github.com/wearefractal/gulp)-rev-napkin

> Remove original files remaining from [gulp-rev](https://github.com/sindresorhus/gulp-rev), or [gulp-rev-all](https://david-dm.org/shonny-ua/gulp-rev-outdated) process. (file.revOrigPath)

Those plugins do a fantastic job but both leave behind the original un-hashed
files. `gulp-rev-napkin` is for cleaning up after them.

## Install

```sh
$ npm install --save-dev gulp-rev-napkin
```


## Usage

```js
var gulp = require('gulp');
var rev = require('gulp-rev');
var revNapkin = require('gulp-rev-napkin');

gulp.task('default', function () {
	return gulp.src('src/**/*.+(css|js|jpg|png|gif)')
		.pipe(rev())
		.pipe(gulp.dest('dest/'))
		.pipe(revNapkin()); // Just place after gulp-rev(-all)
});
```


## API

### revNapkin(options)
Returns a transform stream. 

#### options.verbose
Type: `boolean`

Default: `true`

```js
revNapkin({verbose: false})
```

Enable/Disable `gulp-rev-napkin` log messages.



#### options.force
Type: `boolean`

Default: `false`

```js
revNapkin({force: true})
```

Enable/Disable file removal outside of current working directory (cwd).

__Note:__ `gulp-rev-napkin` uses the terminal `pwd` to determine the `cwd`.



### Works with gulp-rev-napkin
- [gulp-rev](https://github.com/sindresorhus/gulp-rev)
- [gulp-rev-all](https://david-dm.org/shonny-ua/gulp-rev-outdated)


## License

MIT &copy; [Franky Martinez](http://frankymartz.com)

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