# mapping-stream

> Turn an asynchronous function into a through stream

Latest version **0.1.0** (published 2012-09-29) · 0 weekly downloads

## Install

```sh
npm install mapping-stream
pnpm add mapping-stream
yarn add mapping-stream
bun add mapping-stream
```

## 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 | 2012-09-29 |
| First published | 2012-09-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Raynos |
| Maintainers | raynos |

## Links

- npm: https://www.npmjs.com/package/mapping-stream
- Repository: https://github.com/Raynos/mapping-stream
- Issues: https://github.com/Raynos/mapping-stream/issues
- npm.io page: https://npm.io/package/mapping-stream

## Dependencies (1)

- [read-write-stream](https://npm.io/package/read-write-stream.md) ~0.1.0

## Recent versions

- 0.1.0 (latest) — 2012-09-29

## README

# mapping-stream

Turn an asynchronous function into a through stream

## Example

``` js
var from = require("read-stream").fromArray
    , to = require("write-stream").toArray

    , map = require("mapping-stream")

from([1,2,3])
    .pipe(map(function (item, cb) {
        setTimeout(function() {
            cb(null, item * 2)
        }, 1000);
    }))
    .pipe(map(function (item) {
        return item * 2
    }))
    .pipe(to([], function toList (list) {
        console.log("list", list)
    }))

```

## Installation

`npm install mapping-stream`

## Contributors

 - Raynos

## MIT Licenced

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