Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobbubu/pull-through
https://github.com/jacobbubu/pull-through
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jacobbubu/pull-through
- Owner: jacobbubu
- License: mit
- Created: 2020-04-04T03:47:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T12:10:22.000Z (about 2 years ago)
- Last Synced: 2024-11-13T16:12:00.892Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 2.26 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: code-of-conduct.md
Awesome Lists containing this project
README
# @jacobbubu/pull-through
[![Build Status](https://travis-ci.org/jacobbubu/pull-through.svg)](https://travis-ci.org/jacobbubu/pull-through)
[![Coverage Status](https://coveralls.io/repos/github/jacobbubu/pull-through/badge.svg)](https://coveralls.io/github/jacobbubu/pull-through)
[![npm](https://img.shields.io/npm/v/@jacobbubu/pull-through.svg)](https://www.npmjs.com/package/@jacobbubu/pull-through/)> Rewritten [through](https://github.com/dominictarr/through) in TypeScript.
## Example
Same Good Old Api, Brand New Underlying Mechanism.
``` js
import through from '@jacobbubu/pull-through'const ts = through(function (data) {
this.queue(data)
}, function (end) {
this.queue(null)
})
```Please see the test-cases for the detail.