# delta-watch

> Utility for watching objects and separating mutating, watching, and accessing.

Latest version **0.1.2** (published 2018-10-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install delta-watch
pnpm add delta-watch
yarn add delta-watch
bun add delta-watch
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2018-10-14 |
| First published | 2018-04-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 123.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Chad Collins |
| Maintainers | chadrc |
| Keywords | watch, utility |

## Links

- npm: https://www.npmjs.com/package/delta-watch
- Repository: https://github.com/chadrc/delta-watch
- Homepage: https://github.com/chadrc/delta-watch#readme
- Issues: https://github.com/chadrc/delta-watch/issues
- npm.io page: https://npm.io/package/delta-watch

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2018-10-14
- 0.1.1 — 2018-10-14
- 0.1.0 — 2018-10-14
- 0.0.9 — 2018-10-14
- 0.0.8 — 2018-05-10
- 0.0.7 — 2018-05-10
- 0.0.6 — 2018-04-19
- 0.0.5 — 2018-04-16
- 0.0.4 — 2018-04-15
- 0.0.3 — 2018-04-15
- 0.0.2 — 2018-04-15
- 0.0.1 — 2018-04-15

## README

# Delta Watch
Object watching utility for JavaScript

## Example
```typescript
import DeltaWatch from "delta-watch";

// Create watchable object with inital values
let watchable = DeltaWatch.Watchable({
    value: "Initial"
});

DeltaWatch.Watch(watchable.Watcher.value, (value: string) => {
    console.log("new value", value);
});

watchable.Mutator.value = "Changed"; // cb gets call with "Changed"

// May also access current value
console.log(watchable.Accessor);
// logs "Changed"
```

Starting the example app
```bash
cd packages/examples
npm install

npm run build
npm start

```

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