A stream of fixed-size blocks
JavaScript
Latest commit d072e52 Aug 12, 2016 @isaacs Remove extraneous license file
Fix #11
Permalink
Failed to load latest commit information.
bench block-stream-pause benchmark May 30, 2015
test Use latest and greatest tap for testing May 2, 2016
.gitignore gitignore coverage stuff May 30, 2015
.travis.yml travis ci file Jun 3, 2015
LICENSE isc license May 20, 2015
README.md 1st Oct 7, 2011
block-stream.js Smarter pause/resume mid-stream Nov 8, 2011
package.json v0.0.9 May 2, 2016

README.md

block-stream

A stream of blocks.

Write data into it, and it'll output data in buffer blocks the size you specify, padding with zeroes if necessary.

var block = new BlockStream(512)
fs.createReadStream("some-file").pipe(block)
block.pipe(fs.createWriteStream("block-file"))

When .end() or .flush() is called, it'll pad the block with zeroes.