statelog

0.1.3 • Public • Published

statelog NPM version Build Status Coverage StatusDependency statusDev Dependency status

This lib adds events to objects which are triggered when something changes

  const obj = stateLog.create({foo: 'bar'});
 
  obj.__stateLog__.on('set.foo', () => {
    console.log('gets triggered when foo changes');
  });
 
  obj.foo = 'barbar';

Keywords

none

Install

npm i statelog

DownloadsWeekly Downloads

0

Version

0.1.3

License

MIT

Last publish

Collaborators

  • plusgut