Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
caohanyang committed Mar 22, 2016
1 parent 9f420b8 commit 1a271bf
Show file tree
Hide file tree
Showing 2 changed files with 168 additions and 113 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ _**Array**_
## API

```js
var jpn = require('./JSON-Diff');
var jdr = require('json-diff-rfc6902');

//diff the two JSON objects to get the pathes
var jpn_patch = jpn.diff(f_old, f_new);
var jdr_patch = jdr.diff(f_old, f_new);
//apply the patches to the f_old object
jpn.apply(f_old, jpn_patch);
jdr.apply(f_old, jdr_patch);
```

## TEST
Expand Down
Loading

0 comments on commit 1a271bf

Please sign in to comment.