# end-or-error

> Listen readable stream `end` or `error` event once

Latest version **1.0.1** (published 2015-02-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install end-or-error
pnpm add end-or-error
yarn add end-or-error
bun add end-or-error
```

## 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 | 1.0.1 |
| Published | 2015-02-24 |
| First published | 2015-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.11.14 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | fengmk2 |
| Maintainers | fengmk2 |
| Keywords | end-or-error, readstream, readable, stream, end, eoe, stream-utils |

## Links

- npm: https://www.npmjs.com/package/end-or-error
- Repository: https://github.com/stream-utils/end-or-error
- Issues: https://github.com/stream-utils/end-or-error/issues
- npm.io page: https://npm.io/package/end-or-error

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-02-24
- 1.0.0 — 2015-02-23

## README

end-or-error
=======

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Gittip][gittip-image]][gittip-url]
[![David deps][david-image]][david-url]
[![npm download][download-image]][download-url]

[npm-image]: https://img.shields.io/npm/v/end-or-error.svg?style=flat-square
[npm-url]: https://npmjs.org/package/end-or-error
[travis-image]: https://img.shields.io/travis/stream-utils/end-or-error.svg?style=flat-square
[travis-url]: https://travis-ci.org/stream-utils/end-or-error
[coveralls-image]: https://img.shields.io/coveralls/stream-utils/end-or-error.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/stream-utils/end-or-error?branch=master
[gittip-image]: https://img.shields.io/gittip/fengmk2.svg?style=flat-square
[gittip-url]: https://www.gittip.com/fengmk2/
[david-image]: https://img.shields.io/david/stream-utils/end-or-error.svg?style=flat-square
[david-url]: https://david-dm.org/stream-utils/end-or-error
[download-image]: https://img.shields.io/npm/dm/end-or-error.svg?style=flat-square
[download-url]: https://npmjs.org/package/end-or-error

Listen readable stream `end` or `error` event once.

## Install

```bash
$ npm i end-or-error
```

## Usage

```js
var eoe = require('end-or-error');

var stream = createReadStreamSomeHow();

eoe(stream, function (err) {
  // err => stream emitted "error" event
});
```

## License

[MIT](LICENSE)

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