Permalink
Browse files

1st

  • Loading branch information...
isaacs committed Oct 7, 2011
0 parents commit 2b94b5c0ff8d5de72d773d90d218cb159f63f150
Showing with 14 additions and 0 deletions.
  1. +14 −0 README.md
@@ -0,0 +1,14 @@
# 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.
```javascript
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.

0 comments on commit 2b94b5c

Please sign in to comment.