a stream of blocks
Want to see pretty graphs? Log in now!
npm install block-stream
|12 377||downloads in the last day|
|94 484||downloads in the last week|
|405 431||downloads in the last month|
|Last Published By|
|Version||0.0.7 last updated 9 months ago|
|Dependents (14)||fekit, fekitvm, logiblock-launchupdate, midiplex, npm, npm-beta, npm2, repo-npm, rinh-node-tar, rsa-stream, sillyscope, tar, tj-npm, yapm|
|Starred by||isaacs, leesei|
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"))
.flush() is called, it'll pad the block with zeroes.