0.0.1 • Published 9 years ago

asyncplify-node v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

npm version

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