# ely

> Emit Light and Yell

Latest version **1.0.11** (published 2018-01-20) · Unlicense license · 0 weekly downloads

## Install

```sh
npm install ely
pnpm add ely
yarn add ely
bun add ely
```

## 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.11 |
| Published | 2018-01-20 |
| First published | 2017-05-11 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | ranapat@gmail.com |
| Maintainers | ranapat |
| Keywords | ely emit events |

## Links

- npm: https://www.npmjs.com/package/ely
- Repository: https://github.com/ranapat/ely
- Homepage: https://github.com/ranapat/ely#readme
- Issues: https://github.com/ranapat/ely/issues
- npm.io page: https://npm.io/package/ely

## Dependencies (1)

- [events](https://npm.io/package/events.md) ^1.1.1

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.0.11 (latest) — 2018-01-20
- 1.0.10 — 2018-01-20
- 1.0.8 — 2017-07-10
- 1.0.7 — 2017-06-26
- 1.0.6 — 2017-06-26
- 1.0.5 — 2017-06-26
- 1.0.4 — 2017-05-12
- 1.0.3 — 2017-05-11
- 1.0.2 — 2017-05-11
- 1.0.1 — 2017-05-11
- 1.0.0 — 2017-05-11

## README

# ely [![npm version](https://img.shields.io/npm/v/ely.svg?style=flat)](https://www.npmjs.com/package/ely) [![Build Status](https://img.shields.io/travis/ranapat/ely/master.svg?style=flat)](https://travis-ci.org/ranapat/ely)  [![Coverage Status](https://coveralls.io/repos/ranapat/ely/badge.svg?branch=master)](https://coveralls.io/r/ranapat/ely?branch=master) [![devDependencies Status](https://david-dm.org/ranapat/ely/dev-status.svg)](https://david-dm.org/ranapat/ely?type=dev)

ely - Emit Light and Yell

## Make any object parameters emittable

Make listening for changes easier with automatic property change emitter.

### Install:

#### Install with npm
```bash
npm install ely
```

#### Use standalone
```html
<script src="https://cdn.jsdelivr.net/npm/ely/standalone/ely.js"></script>
or
<script src="https://cdn.jsdelivr.net/npm/ely/standalone/ely.min.js"></script>
```

### Access the library:

#### Import
```javascript
import { ely } from 'ely';
```

#### Require
```javascript
const ely = require('ely');
```

#### Standalone
```html
<script src="https://cdn.jsdelivr.net/npm/ely/standalone/ely.min.js"></script>
<script>
// global ely variable exists
</script>
```

### Basics:

#### ely static

Ely library provides a static library to map and unmap objects.
Map returns emitter with signals named as every property that can be
monitored. Also you have '*' to monitor all changes within a single place.

```javascript
import { ely } from 'ely';

const object = {
  a: 'value of a',
  b: 'value of b'
};

const emitter = ely.map(object);

emitter.on('a', (_new, _old) => {
  console.log(_new, _old);
});
emitter.on('*', (_new, _old, key) => {
  console.log(_new, _old, key);
});

object.a = 'new value of a';
object.b = 'new value of b';

```

### More examples

[Check the examples](http://github.com/ranapat/ely/blob/master/examples/src)

### Documentation

[Check the documentation](http://github.com/ranapat/ely/blob/master/docs/docs.md)

### What is next

[Check the todo](http://github.com/ranapat/ely/blob/master/TODO.md)

### What have changed

[Check the changelog](http://github.com/ranapat/ely/blob/master/CHANGELOG.md)

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