block-stream
a stream of blocks
Last updated 9 years ago by isaacs .
ISC · Repository · Bugs · Original npm
$ cnpm install block-stream 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.0.9                                ...           latest (9 years ago)

2 Versions

  • 0.0.7                                ...           12 years ago
  • 0.0.9                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org