# vue-observer

Latest version **1.0.0** (published 2016-11-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-observer
pnpm add vue-observer
yarn add vue-observer
bun add vue-observer
```

## 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 | 2016-11-17 |
| First published | 2016-11-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ahbing |
| Maintainers | ahbing |

## Links

- npm: https://www.npmjs.com/package/vue-observer
- npm.io page: https://npm.io/package/vue-observer

## Recent versions

- 1.0.0 (latest) — 2016-11-17

## README

# Vue-observer


## example

```JavaScript

import { Watcher, observe } from 'vueObservable';

const obj = {
  a: 1,
  b: {
    c: 2
  }
}
const obValue = observe(obj).value;

const callback = function(oldValue, newValue) {

  document.write('value changed, the old value is ', oldValue, ', and this new value is ', newValue);
}

const watcher = new Watcher(obValue, function() {
  return this.a + this.b.c;
}, callback);

// do some change, then will call callback function auto; 
obValue.a = 2;

```
## run example

```sh

npm run build 

```

then open example.html in your browser。

## todo

- add Set function
- add Delete function

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