# ohen

> > Ohen makes objects observable using dirty checking.

Latest version **1.0.1** (published 2017-09-09) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2017-09-09 |
| First published | 2017-09-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ruben Moya |
| Maintainers | rubenmoya |

## Links

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

## Recent versions

- 1.0.1 (latest) — 2017-09-09
- 1.0.0 — 2017-09-09
- 0.0.1 — 2017-09-05

## README

# Ohen
> Ohen makes objects observable using dirty checking.

![Last version](https://img.shields.io/github/tag/rubenmoya/ohen.svg?style=flat-square)
[![Build Status](https://travis-ci.org/rubenmoya/ohen.svg?branch=master)](https://travis-ci.org/rubenmoya/ohen)
[![Greenkeeper badge](https://badges.greenkeeper.io/rubenmoya/ohen.svg)](https://greenkeeper.io/)
[![Dev Dependencies Status](https://img.shields.io/david/dev/rubenmoya/ohen.svg?style=flat-square)](https://david-dm.org/rubenmoya/ohen#info=devDependencies)
[![NPM Status](https://img.shields.io/npm/dm/ohen.svg?style=flat-square)](https://www.npmjs.org/package/ohen)

# Installation
```bash
$ npm install ohen --save
```

## Preview

```javascript
import Ohen from 'ohen';

const person = {
  name: 'Eragon',
  dragon: 'Saphira',
};

Ohen.observe(person, changes => {
  console.log(`@person: ${changes}`));
}, ['add', 'update', 'delete']);

person.father = 'Brom';
// @person: { "name": "name", "type": "update", "object": Object, "oldValue": "Eragon" }

person.name = 'Argetlam';
// @person: { "name": "father", "type": "add", "object": Object }

delete person.father;
// @person: { "name": "father", "type": "delete", "object": Object, "oldValue": "Brom" }
```

## License

MIT © [Rubén Moya](https://github.com/rubenmoya)

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