# on-entries

> Trivial utility for setting event listeners on an emitter.

Latest version **1.0.0** (published 2018-09-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install on-entries
pnpm add on-entries
yarn add on-entries
bun add on-entries
```

## 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.0 |
| Published | 2018-09-29 |
| First published | 2018-09-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | evan.summers@gmail.com |
| Maintainers | evanx |

## Links

- npm: https://www.npmjs.com/package/on-entries
- Repository: https://github.com/evanx/on-entries
- Homepage: https://github.com/evanx/on-entries#readme
- Issues: https://github.com/evanx/on-entries/issues
- npm.io page: https://npm.io/package/on-entries

## Recent versions

- 1.0.0 (latest) — 2018-09-29

## README

# on-entries

Trivial utility for setting event listeners on an emitter.

## Example usage

```javascript
require('on-entries')(emitter, {
   error(err) {
      console.error(err)
   },
   end() {
      console.log('ended')
   },
})
```

See https://github.com/evanx/on-entries/blob/master/example/example.js

## Implementation

See https://github.com/evanx/on-entries/blob/master/index.js

```javascript
module.exports = (emitter, handlers) =>
   Object.entries(handlers).forEach(entry => emitter.on(...entry))
```

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