Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobbubu/pull-spec
https://github.com/jacobbubu/pull-spec
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jacobbubu/pull-spec
- Owner: jacobbubu
- License: mit
- Created: 2020-04-27T15:21:16.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T04:29:36.000Z (about 2 years ago)
- Last Synced: 2024-12-13T18:42:09.712Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.15 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# @jacobbubu/pull-spec
[![Build Status](https://github.com/jacobbubu/pull-spec/workflows/Build%20and%20Release/badge.svg)](https://github.com/jacobbubu/pull-spec/actions?query=workflow%3A%22Build+and+Release%22)
[![Coverage Status](https://coveralls.io/repos/github/jacobbubu/pull-spec/badge.svg)](https://coveralls.io/github/jacobbubu/pull-spec)
[![npm](https://img.shields.io/npm/v/@jacobbubu/pull-spec.svg)](https://www.npmjs.com/package/@jacobbubu/pull-spec/)> Rewritten [pull-spec](https://github.com/dominictarr/pull-spec) in TypeScript.
# pull-spec
check that a pull-stream has the correct behavior.
``` js
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