block-stream
a stream of blocks
Last updated 11 years ago by isaacs .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm 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 (11 years ago)

7 Versions

  • 0.0.9                                ...           11 years ago
  • 0.0.8                                ...           12 years ago
  • 0.0.7                                ...           13 years ago
  • 0.0.6                                ...           14 years ago
  • 0.0.5                                ...           15 years ago
  • 0.0.4                                ...           15 years ago
  • 0.0.3                                ...           15 years ago
Maintainers (1)
Downloads
Total 15
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 0
Last Month 6
Dependencies (1)
Dev Dependencies (1)
Dependents (4)

© 2010 - cnpmjs.org x YWFE | Home | YWFE