IMM.js
Immutable data collections built on top of seamless-immutable
Seemless-immutable.js is great, but it doesn't have an API that feels right for CRUD applications. Imm wraps it to provide a convenient API for CRUD applications.
For example:
// add one recordlist; // add many recordslist // get one recordlist; // update one record (patch)list; // remove one recordlist; // remove many recordslist; ... many more
Install
Using NPM
npm install imm
Browser global
Download dist/imm.js
or dist/imm.min.js
This library requires seamless-immutable to be loaded.
Usage
Create a list by:
var list = Imm;
See the API docs for all the methods available on List.
Create an object by:
var object = Imm;
Imm.Obj just delegates to Seamless Immutable. See https://github.com/rtfeldman/seamless-immutable#immutable-object
API docs
Development
To generate documentation verb
needs to be installed:
npm i -g verb-cli
Testing
npm installnpm test
Build
This will lint, test, minify and create documentation
gulp