0.7.3 • Published 9 years ago

imm v0.7.3

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

IMM.js

Codeship Status for sporto/imm

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 record
list.add(record);

// add many records
list.add(records)

// get one record
list.get(id);

// update one record (patch)
list.update(record);

// remove one record
list.remove(ids);

// remove many records
list.remove(ids);

... 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.List(records);

See the API docs for all the methods available on List.

Create an object by:

var object = Imm.Obj(record);

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 install
npm test

Build

This will lint, test, minify and create documentation

gulp

Related projects

0.7.3

9 years ago

0.7.2

9 years ago

0.7.1

9 years ago

0.7.0

9 years ago

0.6.1

9 years ago

0.6.0

9 years ago

0.5.6

9 years ago

0.5.5

9 years ago

0.5.4

9 years ago

0.5.3

9 years ago

0.5.2

9 years ago

0.5.1

9 years ago

0.5.0

9 years ago

0.4.0

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago