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

7 Versions

  • 0.0.9                                ...           4 years ago
  • 0.0.8                                ...           5 years ago
  • 0.0.7                                ...           7 years ago
  • 0.0.6                                ...           8 years ago
  • 0.0.5                                ...           8 years ago
  • 0.0.4                                ...           9 years ago
  • 0.0.3                                ...           9 years ago
Maintainers (1)
Downloads
Today 3,265
This Week 38,416
This Month 102,511
Last Day 17,920
Last Week 98,771
Last Month 420,203
Dependencies (1)
Dev Dependencies (1)
Dependents (101)

Copyright 2014 - 2016 © taobao.org |