APPLE 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos
..
LICENCE 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos
LICENSE 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos
README.md 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos
block-stream.js 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos
package.json 323c2f1633 wesmiler 点什么广告 %!s(int64=3) %!d(string=hai) anos

README.md

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.