# obento-state

> obent-state can manage internal state change like URL.

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

## Install

```sh
npm install obento-state
pnpm add obento-state
yarn add obento-state
bun add obento-state
```

## 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 | 2018-09-20 |
| First published | 2018-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 2 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yuichi Ikeda |
| Maintainers | kaave, pond6 |

## Links

- npm: https://www.npmjs.com/package/obento-state
- Repository: https://github.com/framelunch/obento-state
- Issues: https://github.com/framelunch/obento-state/issues
- npm.io page: https://npm.io/package/obento-state

## Dependencies (2)

- [obento-cp](https://npm.io/package/obento-cp.md) ^1.0.1
- [obento-loop](https://npm.io/package/obento-loop.md) ^1.0.0

## Recent versions

- 1.0.1 (latest) — 2018-09-20
- 1.0.0 — 2018-08-01

## README

# obento-state
obent-state can manage internal state change like URL

## Installation
Yarn:
```bash
yarn add obento-state
```

npm:
```bash
npm install --save obento-state
```

## Example
```javascript
var state = new require('obento-state')();

var fc = function() {
  state.wait();
  setTimeout(function() {
    state.notify();
  }, 1000);
}

state.listen('add:a', fc);
state.listen('add:b', function() {
  // will call after 1 second from called fc()
});

state.change('/a/b');

// will call 'fc'
```

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