asyncplify-node
v0.0.1
Published
asyncplify operators for working with streams and events
Downloads
4
Maintainers
Readme
asyncplify-node
asyncplify operators for working with streams and events.
Installation
$ npm install asyncplify-node
Documentation
fromStream(stream)
read the content from a stream (readable, transformable or writable)
Example:
asyncplifyNode
.fromStream(createReadableStream())
.subscribe();
toStream(options)
write the content of an observable to a writable stream.
options:
- stream: Stream Object
- encoding: String
- objectMode: Boolean default = false
Example:
asyncplify
.fromArray([1, 2, 3, 4])
.pipe(asyncplifyNode.toStream(createWriteStream('file.txt')));
License
The MIT License (MIT)
Copyright (c) 2015 Dany Laporte