A stream of fixed-size blocks
JavaScript
Latest commit d072e52 Aug 13, 2016 @isaacs Remove extraneous license file
Fix #11
Permalink
Failed to load latest commit information.
bench
test Use latest and greatest tap for testing May 2, 2016
.gitignore
.travis.yml
LICENSE isc license May 20, 2015
README.md 1st Oct 7, 2011
block-stream.js
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.