# highland-errors-to

> Redirect errors in a highland stream.

Latest version **2.0.1** (published 2015-02-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install highland-errors-to
pnpm add highland-errors-to
yarn add highland-errors-to
bun add highland-errors-to
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2015-02-23 |
| First published | 2015-01-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Islam Sharabash |
| Maintainers | ibash |
| Keywords | highland, stream, error, errors |

## Links

- npm: https://www.npmjs.com/package/highland-errors-to
- Repository: github.com/ibash/highland-errors-to
- Homepage: https://github.com/ibash/highland-errors-to
- Issues: https://github.com/ibash/highland-errors-to/issues
- npm.io page: https://npm.io/package/highland-errors-to

## Dependencies (1)

- [highland](https://npm.io/package/highland.md) ^2.4.0

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 2.0.1 (latest) — 2015-02-23
- 2.0.0 — 2015-02-11
- 1.0.1 — 2015-02-11
- 1.0.0 — 2015-01-25

## README

# Highland Errors To

Redirect errors in a highland stream.

## Install

    npm install highland-errors-to

## Usage

```javascript
var _ = require('highland'),
    errorsTo = require('highland-errors-to'),
    things,
    stream,
    errorStream;

stream = _(function(push, next) {
  push(null, 'hello');
  push(new Error('first error'));
  push(null, 'everyone');
  push(new Error('second error'));
  push(null, _.nil);
});

var things = errorsTo(stream);
errorStream = things.errors;
stream = things.stream;

stream
  .errors(function(error, push) {
    // never called, all errors are redirected!
  });

errorStream
  .errors(function(error, push) {
    // called for every error in stream
  });

stream.resume();
```

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