0.0.1 • Published 8 years ago
asyncplify-node v0.0.1
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
0.0.1
8 years ago