# stream-to-pull-stream

> convert a stream1 or streams2 stream into a pull-stream

Latest version **1.7.3** (published 2019-03-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install stream-to-pull-stream
pnpm add stream-to-pull-stream
yarn add stream-to-pull-stream
bun add stream-to-pull-stream
```

## 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.7.3 |
| Published | 2019-03-20 |
| First published | 2013-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 15.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 30 |
| Author | Dominic Tarr |
| Maintainers | dominictarr |

## Links

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

## Dependencies (2)

- [looper](https://npm.io/package/looper.md) ^3.0.0
- [pull-stream](https://npm.io/package/pull-stream.md) ^3.2.3

## Recent versions

- 1.7.3 (latest) — 2019-03-20
- 1.7.2 — 2016-09-26
- 1.7.1 — 2016-09-23
- 1.7.0 — 2016-06-28
- 1.6.10 — 2016-06-22
- 1.6.9 — 2016-06-14
- 1.6.8 — 2016-04-07
- 1.6.7 — 2016-04-06
- 1.6.6 — 2015-09-03
- 1.6.5 — 2015-08-22
- 1.6.4 — 2015-08-22
- 1.6.3 — 2015-08-01
- 1.6.2 — 2015-07-31
- 1.6.1 — 2014-12-02
- 1.6.0 — 2014-10-19
- … 13 more at https://npm.io/package/stream-to-pull-stream/versions

## README

# stream-to-pull-stream

Convert a classic-stream, or a new-stream into a
[pull-stream](https://github.com/dominictarr/pull-stream)

## example

``` js
var toPull = require('stream-to-pull-stream')
var pull = require('pull-stream')

pull(
  toPull.source(fs.createReadStream(__filename)),
  pull.map(function (e) { return e.toString().toUpperCase() }),
  toPull.sink(process.stdout, function (err) {
    if(err) throw err
    console.log('done')
  })
)
```

if the node steam is a duplex (i.e. net, ws) then use `toPull.duplex(stream, cb?)`
`duplex` takes an optional callback in the same way that `sink` does.

## License

MIT

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