node/deps/npm/node_modules/block-stream
isaacs ff0de45929 npm: Upgrade to v1.3.5 2013-07-24 13:23:44 -07:00
..
bench npm: Upgrade to 1.1.43 2012-07-17 11:37:39 -07:00
test npm: Upgrade to 1.1.43 2012-07-17 11:37:39 -07:00
LICENCE npm: Upgrade to 1.1.43 2012-07-17 11:37:39 -07:00
README.md Include NPM, update .pkg to install it. 2011-11-21 10:50:52 -08:00
block-stream.js Include NPM, update .pkg to install it. 2011-11-21 10:50:52 -08:00
package.json npm: Upgrade to v1.3.5 2013-07-24 13:23:44 -07:00

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.