# callbag-throw-error

> 👜 Callbag source factory that immediately emits an error.

Latest version **1.0.1** (published 2018-07-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install callbag-throw-error
pnpm add callbag-throw-error
yarn add callbag-throw-error
bun add callbag-throw-error
```

## 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-07-20 |
| First published | 2018-07-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Mateusz Burzyński |
| Maintainers | andarist |
| Keywords | callbag, callbags |

## Links

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

## Recent versions

- 1.0.1 (latest) — 2018-07-20
- 1.0.0 — 2018-07-20

## README

# callbag-throw-error

Callbag source factory that immediately emits an error.

## Example

```js
import concat from 'callbag-concat'
import of from 'callbag-of'
import pipe from 'callbag-pipe'
import subscribe from 'callbag-subscribe'
import throwError from 'callbag-throw-error'

pipe(
  concat(of(1, 2, 3), throwError('err'))
  subscribe({
    next: value => {
      console.log(value) // 1 2 3
    },
    error: err => {
      console.log(err) // 'err'
    },
  }),
)
```

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