Skip to content

JSON Merge-Patch Implementation with Diff and Combine

License

Notifications You must be signed in to change notification settings

krisnye/merge-patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

merge-patch

JSON Merge-Patch Implementation with Diff and Combine

This module exports three functions:

//  applies the patch to the target and returns the new value
function apply(target, patch)

//  returns the patch which will convert the old value to the new value
//  returns undefined if there is no change
function diff(oldValue, newValue)

//  combines two patches into a single patch which applies both changes
function combine(patch1, patch2)

About

JSON Merge-Patch Implementation with Diff and Combine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published