# plumber-write

> Write to file operation for Plumber pipelines

Latest version **0.2.6** (published 2014-10-13) · GPL license · 0 weekly downloads

## Install

```sh
npm install plumber-write
pnpm add plumber-write
yarn add plumber-write
bun add plumber-write
```

## 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.6 |
| Published | 2014-10-13 |
| First published | 2014-01-02 |
| Weekly downloads | 0 |
| License | GPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sébastien Cevey |
| Maintainers | theefer, oliverjash |
| Keywords | build, assets, pipeline, plumber |

## Links

- npm: https://www.npmjs.com/package/plumber-write
- Repository: https://github.com/plumberjs/plumber-write
- Issues: https://github.com/plumberjs/plumber-write/issues
- npm.io page: https://npm.io/package/plumber-write

## Dependencies (5)

- [q](https://npm.io/package/q.md) ~0.9.7
- [mkdirp](https://npm.io/package/mkdirp.md) ~0.3.5
- [flatten](https://npm.io/package/flatten.md) 0.0.1
- [plumber](https://npm.io/package/plumber.md) ~0.2.12
- [mercator](https://npm.io/package/mercator.md) ~0.1.7

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.2.6 (latest) — 2014-10-13
- 0.4.1 — 2014-09-20
- 0.2.5 — 2014-07-08
- 0.4.0 — 2014-07-03
- 0.3.1 — 2014-03-11
- 0.3.0 — 2014-03-05
- 0.2.4 — 2014-02-19
- 0.2.3 — 2014-02-09
- 0.2.2 — 2014-02-09
- 0.2.1 — 2014-02-05
- 0.2.0 — 2014-02-02
- 0.1.5 — 2014-01-15
- 0.1.4 — 2014-01-12
- 0.1.3 — 2014-01-03
- 0.1.2 — 2014-01-03
- … 2 more at https://npm.io/package/plumber-write/versions

## README

plumber-write [![Build Status](https://travis-ci.org/plumberjs/plumber-write.png?branch=master)](https://travis-ci.org/plumberjs/plumber-write)
=============

Write-to-filesystem operation for [Plumber](https://github.com/plumberjs/plumber) pipelines.

## Example

    var write = require('plumber-write');

    module.exports = function(pipelines) {

        pipelines['compile'] = [
            // ... pipeline operations
            write('target/dist')
        ];

    };


## API

### `write(destination)`

Write all input resources to the `destination` directory.

A `Report` is generated for each resources written to disk.

### `write.omitSourceMap`

Returns a new write operation that won't write out the source map
data.

`omitSourceMap` can be used either as a prefix or suffix:

    var writeNoMap = write.omitSourceMap;

    pipelines['compile'] = [
        // ... pipeline operations
        writeNoMap('target/dist')
    ];

    // or

    pipelines['compile'] = [
        // ... pipeline operations
        write('target/dist').omitSourceMap
    ];

### `write.omitContentFromSourceMap`

Returns a new write operation that will write out source maps without
the `sourcesContent`.

Like `omitSourceMap`, `omitContentFromSourceMap` can be used either as a prefix or suffix.

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