Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 15 lines (10 sloc) 0.369 kB
2b94b5c @isaacs 1st
authored
1 # block-stream
2
3 A stream of blocks.
4
5 Write data into it, and it'll output data in buffer blocks the size you
6 specify, padding with zeroes if necessary.
7
8 ```javascript
9 var block = new BlockStream(512)
10 fs.createReadStream("some-file").pipe(block)
11 block.pipe(fs.createWriteStream("block-file"))
12 ```
13
14 When `.end()` or `.flush()` is called, it'll pad the block with zeroes.
Something went wrong with that request. Please try again.