1.0.0 • Published 4 years ago

@jacobbubu/pull-spec v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@jacobbubu/pull-spec

Build Status Coverage Status npm

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