@ristostevcev/callbag-to-promise

1.0.0 • Public • Published

callbag-to-promise

Convert an entire stream into a promise

Install

yarn install @ristostevcev/callbag-to-promise

Usage

const { pipe, interval, map, take } = require('callbag-basics')
const toPromise = require('@ristostevcev/callbag-to-promise')

pipe(
  interval(50),
  map(e => e * 2),
  take(5),
  toPromise
)
// Promise [0, 2, 4, 6, 8]

License

See LICENSE

Readme

Keywords

none

Package Sidebar

Install

npm i @ristostevcev/callbag-to-promise

Weekly Downloads

0

Version

1.0.0

License

BSD-3-Clause

Unpacked Size

3.02 kB

Total Files

5

Last publish

Collaborators

  • ristostevcev