Skip to content

Commit

Permalink
feat(meterstream): add MeterStream
Browse files Browse the repository at this point in the history
  • Loading branch information
olalonde committed Sep 22, 2016
1 parent 5b7734c commit 85f2858
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,9 @@ Readable stream that emits `max` random bytes before ending.
`new DiscardStream(start)`

Swallows all bytes until `start` is reached.

### MeterStream

`new MeterStream(max)`

See [meterstream](https://github.com/blockai/meterstream)
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "common-streams",
"version": "1.2.0",
"version": "1.3.0",
"description": "",
"main": "./lib/index.js",
"directories": {
Expand Down Expand Up @@ -55,5 +55,8 @@
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"dependencies": {
"meterstream": "^1.0.1"
}
}
}
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export { default as HashStream } from './HashStream'
export { default as SizeStream } from './SizeStream'
export { default as RandomStream } from './RandomStream'
export { default as DiscardStream } from './DiscardStream'
export { default as MeterStream } from 'meterstream'

0 comments on commit 85f2858

Please sign in to comment.