polity

0.1.0 • Public • Published

Polity Build Status

Event-emitting stateful objects. Maps on event-flavoured steroids.

Installation

npm install polity

What's the deal

State objects are just ES6 Maps that emit events when values get changed.

API

State([initAttributes])

#set(key, value) or #set(object)

#delete(key)

#clear

#get(key)

#has(key)

Licence

MIT. © 2014 Matt Brennan

Readme

Keywords

Package Sidebar

Install

npm i polity

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • quarterto