pull-spec

0.0.1 • Public • Published

pull-spec

check that a pull-stream has the correct behavior.

var Spec = require('pull-spec')
var pull = require('pull-stream')

pull(
  Spec(pull.values([1,2,3])),
  ...
)

will throw an error if the stream callsback 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

Readme

Keywords

none

Package Sidebar

Install

npm i pull-spec

Weekly Downloads

5

Version

0.0.1

License

MIT

Last publish

Collaborators

  • dominictarr