Skip to content

A JSON Patch (RFC 6902) and JSON Merge Patch (RFC 7396) implementation for JS (browser and Node) using Rust.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

formbird/json-patcher

Repository files navigation

json-patcher

A JSON Patch (RFC 6902) and JSON Merge Patch (RFC 7396) implementation for JS (browser and Node) using Rust.

This library is built with:

  • Neon for Node bindings
  • WebAssembly for browser

Implementation of the patch and merge alogrithms is provided using json-patch crate.

Installing json-patcher

Installing json-patcher requires a supported version of Node and Rust.

You can install the project with npm.

$ npm install @formbird/json-patcher

This fully installs the project, including installing any dependencies and running the build.

Contributing

Building json-patcher

Make sure you have Rust and wasm-pack installed. From the checked out source, run:

$ npm run build

This command will build native Node bindings and the WASM binary. node:build and browser:build scripts can be used to build them induvially. The scripts can be appended with :release to build in release mode.

About

A JSON Patch (RFC 6902) and JSON Merge Patch (RFC 7396) implementation for JS (browser and Node) using Rust.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published