# callbag-to-promise

> 👜 Callbag operator which converts source to a promise containing last emitted value.

Latest version **1.0.1** (published 2018-11-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install callbag-to-promise
pnpm add callbag-to-promise
yarn add callbag-to-promise
bun add callbag-to-promise
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-11-08 |
| First published | 2018-07-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Mateusz Burzyński |
| Maintainers | andarist |
| Keywords | callbag, callbags |

## Links

- npm: https://www.npmjs.com/package/callbag-to-promise
- Repository: https://github.com/Andarist/callbag-to-promise
- Homepage: https://github.com/Andarist/callbag-to-promise#readme
- Issues: https://github.com/Andarist/callbag-to-promise/issues
- npm.io page: https://npm.io/package/callbag-to-promise

## Dependencies (2)

- [callbag-subscribe](https://npm.io/package/callbag-subscribe.md) ^1.4.1
- [callbag-last-element](https://npm.io/package/callbag-last-element.md) ^1.0.1

## Recent versions

- 1.0.1 (latest) — 2018-11-08
- 1.0.0 — 2018-07-16

## README

# callbag-to-promise

Callbag operator which converts source to a promise containing last emitted value.

## Example

```js
import interval from 'callbag-interval'
import pipe from 'callbag-pipe'
import takeUntil from 'callbag-take-until'
import toPromise from 'callbag-to-promise'

pipe(
  interval(30),
  takeUntil(interval(200)),
  toPromise,
).then(value => {
  console.log(value) // 5
})
```

---
_Source: https://npm.io/package/callbag-to-promise · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
