# gulp-add

> Add files by content at any point in the pipeline

Latest version **0.1.0** (published 2018-05-07) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2018-05-07 |
| First published | 2014-05-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0 |
| Dependencies | 3 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Marat Abdullin |
| Maintainers | hoho |
| Keywords | gulp, gulpplugin, add, insert, file, content |

## Links

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

## Dependencies (3)

- [vinyl](https://npm.io/package/vinyl.md) ^2.1.0
- [through2](https://npm.io/package/through2.md) ^2.0.3
- [plugin-error](https://npm.io/package/plugin-error.md) ^1.0.1

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2018-05-07
- 0.0.2 — 2014-08-12
- 0.0.1 — 2014-05-20
- 0.0.0 — 2014-05-20

## README

# gulp-add

[![NPM version][npm-version-image]][npm-url]
[![Build Status][build-status-image]][build-status-url]
[![Downloads][npm-downloads-image]][npm-url]

Add files by contents at any point in the pipeline.

Install:

```sh
npm install gulp-add --save-dev
```


Example:

```js
var add = require('gulp-add');

gulp.task('some-task', function() {
    return gulp.src(['some files'])
        .pipe(add('filename1.txt', 'First file contents'))
        .pipe(add({
            'filename2.txt': 'Second file contents',
            'filename3.txt': 'Third file contents'
        }))
        .pipe(gulp.dest('./build'));
});
```

By default, new files are being added to the end of the stream. You can insert
new files in the beginning of the stream:

```js
.pipe(add('filename1.txt', 'First file contents', true))
```

or

```js
.pipe(add({
    'filename2.txt': 'Second file contents',
    'filename3.txt': 'Third file contents'
}, true))
```

[npm-url]: https://www.npmjs.com/package/gulp-add
[npm-version-image]: https://img.shields.io/npm/v/gulp-add.svg
[npm-downloads-image]: http://img.shields.io/npm/dm/gulp-add.svg

[build-status-url]: https://travis-ci.org/hoho/gulp-add
[build-status-image]: https://travis-ci.org/hoho/gulp-add.svg?branch=master

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