UNPKG

@web-native-js/observer

Version:

A simple set of functions for intercepting and observing JavaScript objects and arrays.

29 lines (16 loc) 1.62 kB
> Observability and Interceptability, Objects and Arrays. # Observer <!-- BADGES/ --> <span class="badge-npmversion"><a href="https://npmjs.org/package/@web-native-js/observables" title="View this project on NPM"><img src="https://img.shields.io/npm/v/@web-native-js/observables.svg" alt="NPM version" /></a></span> <span class="badge-npmdownloads"><a href="https://npmjs.org/package/@web-native-js/observables" title="View this project on NPM"><img src="https://img.shields.io/npm/dm/@web-native-js/observables.svg" alt="NPM downloads" /></a></span> <span class="badge-patreon"><a href="https://patreon.com/ox_harris" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span> <!-- /BADGES --> Observer is a simple set of functions for intercepting and observing JavaScript objects and arrays. It is designed for general-purpose event-based architectures (from UI data-binding to debugging, and everything in between). It draws its inspiration from [Object.observe](https://arv.github.io/ecmascript-object-observe) and JavaScript's other reflection APIs like [`Reflect`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect). ## Documentation + [Installation](https://docs.web-native.dev/observer/installation) + [Examples](https://docs.web-native.dev/observer/examples) + [API](https://docs.web-native.dev/observer/api) ## Issues To report bugs or request features, please submit an [issue](https://github.com/web-native/observer/issues). ## License MIT.