# gulp-hash-file-plugin

> This plugins emits an additional file named `[file].hash` containing an MD5 hash for each files in the stream.

Latest version **1.0.1** (published 2020-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-hash-file-plugin
pnpm add gulp-hash-file-plugin
yarn add gulp-hash-file-plugin
bun add gulp-hash-file-plugin
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-08-26 |
| First published | 2020-08-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 1.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rafael de Oliveira |
| Maintainers | rafaeldeoliveira |

## Links

- npm: https://www.npmjs.com/package/gulp-hash-file-plugin
- Repository: https://github.com/rafaeldeoliveira/gulp-hash-file-plugin
- Homepage: https://github.com/rafaeldeoliveira/gulp-hash-file-plugin#readme
- Issues: https://github.com/rafaeldeoliveira/gulp-hash-file-plugin/issues
- npm.io page: https://npm.io/package/gulp-hash-file-plugin

## Dependencies (4)

- [md5](https://npm.io/package/md5.md) ^2.3.0
- [vinyl](https://npm.io/package/vinyl.md) ^2.2.0
- [through2](https://npm.io/package/through2.md) ^4.0.2
- [plugin-error](https://npm.io/package/plugin-error.md) ^1.0.1

## Recent versions

- 1.0.1 (latest) — 2020-08-26
- 1.0.0 — 2020-08-25

## README

# About
This plugins emits an additional file named `[file].hash` containing an MD5 hash for each files in the stream.


# Usage

`yarn add -D gulp-hash-file-plugin`

```js
const { task, dest } = require('gulp');
const hash = require('gulp-hash-file-plugin');

function myTask() {
    return src(files)
            .pipe(...)
            .pipe(hash())
            .pipe(dest(output));
}

exports.myTask = myTask;
```

Example output files:
- fileA.js
- fileA.js.hash 
- fileB.js
- fileB.js.hash 

# Options 

|Name|Description|Default|
|-----|----------|-----|
|`hashFileExtension`|Extension of the generated hash file|`hash`|

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