A writable and readable stream with bufferisation
Want to see pretty graphs? Log in now!
npm install buffered-stream
|35||downloads in the last day|
|211||downloads in the last week|
|907||downloads in the last month|
|Version||0.0.1 last updated a year ago|
|Keywords||node, stream, buffer|
This module create a Stream which implement both the writer and reader API. The content written to the stream is buffered at a defined size and later flushed into the final destination stream. Use the buffered stream to increase writing speed.
The example below will buffer the data from i readable stream and send them to a writeable stream as 16 Mo chunks.
buffered = require('buffered-stream'); reader = createStreamReader(); buffer = buffered(4*1024*1024); writer = createStreamWriter(); reader.pipe(buffer).pipe(writer);
Tests are executed with mocha. To install it, simple run
npm install, it will install
mocha and its dependencies in your project "node_modules" directory.
To run the tests:
The tests run against the CoffeeScript source files.
The test suite is run online with Travis against Node.js version 0.6, 0.7, 0.8 and 0.9.
- David Worms: https://github.com/wdavidw