1.0.0 • Published 4 years ago
@jacobbubu/pull-spec v1.0.0
@jacobbubu/pull-spec
Rewritten pull-spec in TypeScript.
pull-spec
check that a pull-stream has the correct behavior.
import { Source } from '@jacobbubupull-spec'
var pull = require('pull-stream')
pull(
Source(pull.values([1,2,3])),
...
)
will throw an error if the stream callbacks too many times, or out of turn, and also if read is called incorrectly.
It's generally enough to just connect the sink.
License
MIT
1.0.0
4 years ago