Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including async-map-stream with all npm packages installed. Try it out:

var asyncMapStream = require("async-map-stream")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

async-map-stream v1.1.1

A version of map-stream with support for callbacks, promises, observables and streams.


NPM version Downloads Build Status Coverage Status Chat Tip

A version of map-stream that supports callbacks, promises, observables, and streams. Always uses objectMode.


$ npm install --save async-map-stream


var map = require('async-map-stream');

    .pipe(map(function (file) {
        // make observations
        return Observable.just(file);
    .pipe(map(function (file) {
        // make promises
        return Promise.resolve(file);
    .pipe(map(function (file, cb) {
        // kick it old-school
        cb(null, file);


map([options,] transform [, flush]) : TransformStream

See the through2 documentation for all possible options and arguments.

transform(data [, cb])


See the async-done documentation for all possible arguments and return types.


$ npm test



Standards for this project, including tests, code coverage, and semantics are enforced with a build tool. Pull requests must include passing tests with 100% code coverage and no linting errors.

© 2015 Shannon Moeller

Licensed under MIT

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free