# gulp-tap

> Easiest way to tap into a pipeline

Latest version **2.0.0** (published 2019-08-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-tap
pnpm add gulp-tap
yarn add gulp-tap
bun add gulp-tap
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2019-08-19 |
| First published | 2014-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/gulp-tap) |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 151 |
| Maintainers | dotnetcarpenter, mgutz |
| Keywords | tap, gulp, stream |

## Links

- npm: https://www.npmjs.com/package/gulp-tap
- Repository: https://github.com/geejs/gulp-tap
- Issues: https://github.com/geejs/gulp-tap/issues
- npm.io page: https://npm.io/package/gulp-tap

## Dependencies (1)

- [through2](https://npm.io/package/through2.md) ^3.0.1

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2019-08-19
- 1.0.1 — 2017-05-03
- 0.4.2 — 2017-04-11
- 0.4.1 — 2017-04-10
- 0.4.0 — 2017-04-10
- 0.1.3 — 2014-09-29
- 0.1.2 — 2014-09-28
- 0.1.1 — 2014-01-13
- 0.1.0 — 2014-01-13

## README

# gulp-tap [![Build Status](https://travis-ci.org/geejs/gulp-tap.svg?branch=master)](https://travis-ci.org/geejs/gulp-tap) [![Coverage Status](https://coveralls.io/repos/github/geejs/gulp-tap/badge.svg?branch=master)](https://coveralls.io/github/geejs/gulp-tap?branch=master) [![Dependencies Status](https://david-dm.org/geejs/gulp-tap.svg)](https://david-dm.org/geejs/gulp-tap)

Easily tap into a pipeline.

## Install

`npm install gulp-tap --save-dev`

## Uses

Some filters like `gulp-coffee` process all files. What if you want to process
all JS and Coffee files in a single pipeline. Use `tap` to filter out `.coffee`
files and process them through the `coffee` filter and let JavaScript files
pass through.

```js
gulp.src("src/**/*.{coffee,js}")
    .pipe(tap(function(file, t) {
        if (path.extname(file.path) === '.coffee') {
            return t.through(coffee, []);
        }
    }))
    .pipe(gulp.dest('build'));
```

What if you want to change content like add a header? No need for a separate
filter, just change the content.

```js
tap(function(file) {
    file.contents = Buffer.concat([
        new Buffer('HEADER'),
        file.contents
    ]);
});
```

If you do not return a stream, tap forwards your changes.

## Examples

See [Wiki](https://github.com/geejs/gulp-tap/wiki) for more examples.

## License

The MIT License (MIT)

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