Skip to content

Create streams from promises, iterators, factories and arbitrary Javascript values like functions, arrays, etc.

License

Notifications You must be signed in to change notification settings

schnittstabil/stream-from

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stream-from Dependencies Status Image Build Status Image

Create streams from promises, iterators, factories and arbitrary Javascript values like functions, arrays, etc.

npm install stream-from --save

This is a simple facade for:

var streamFrom = require('stream-from');

/* stream-from-array */
streamFrom.array(['foo', 'bar']).pipe(process.stdout); // output: foobar
streamFrom.array.obj(...).pipe(...);

/* stream-from-factory */
streamFrom.factory(...).pipe(...);
streamFrom.factory.obj(...).pipe(...);

/* stream-from-iterator */
streamFrom.iterator(...).pipe(...);
streamFrom.iterator.obj(...).pipe(...);

/* stream-from-promise */
streamFrom.promise(...).pipe(...);
streamFrom.promise.obj(...).pipe(...);

/* stream-from-value */
streamFrom.value(...).pipe(...);
streamFrom.value.obj(...).pipe(...);

License

Copyright (c) 2014 Michael Mayer

Licensed under the MIT license.

About

Create streams from promises, iterators, factories and arbitrary Javascript values like functions, arrays, etc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published