gossip-object-diff

0.1.0 • Public • Published

gossip-object-diff

Given two JSON docs computes the set of changes needed to transform the first into the second in the format used internally by gossip-object.

Installation

npm install gossip-object-diff

Usage

 
var diff = require('gossip-object-diff');
var Model = require('gossip-object');
 
var model = new Model();
 
var changes = diff({}, {a: {b: true}});
 
console.log(changes);
 
model.localChanges(changes);

Package Sidebar

Install

npm i gossip-object-diff

Weekly Downloads

1

Version

0.1.0

License

ISC

Last publish

Collaborators

  • allain