# pull-write-file

> pull-stream version of fs.createWriteStream

Latest version **0.2.4** (published 2016-12-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install pull-write-file
pnpm add pull-write-file
yarn add pull-write-file
bun add pull-write-file
```

## 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.4 |
| Published | 2016-12-28 |
| First published | 2016-02-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dominic Tarr |
| Maintainers | dominictarr |

## Links

- npm: https://www.npmjs.com/package/pull-write-file
- Repository: https://github.com/dominictarr/pull-write-file
- Issues: https://github.com/dominictarr/pull-write-file/issues
- npm.io page: https://npm.io/package/pull-write-file

## Recent versions

- 0.2.4 (latest) — 2016-12-28
- 0.2.3 — 2016-12-27
- 0.2.2 — 2016-11-23
- 0.2.1 — 2016-04-09
- 0.2.0 — 2016-04-09
- 0.1.0 — 2016-03-18
- 0.0.1 — 2016-02-11
- 0.0.0 — 2016-02-11

## README

# pull-write-file

pull-stream version of fs.createWriteStream

currently really simple and does not yet support all fs.createWriteStream options yet.

## Example

``` js
var Write = require('pull-write-stream')

pull(
  source, //must be buffers (sorry, strings not working yet!)
  Write(pathToFile, {}, function (err) {
    //callback is called once write is complete,
    //and file descriptor is closed
  })
)

```

## Performance

For large buffers this is currently as fast as node's streams,
but for lots of small buffers it's a little less.
Node uses the fs binding's `writev` to pass many buffers to the kernel simutaniously.

TODO: benchmarks with graphs comparing node streams and pull streams.

## License

MIT

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