@mutt/extension-json-patch

1.0.0 • Public • Published

Mutt Forms Plugin - JSON Patch extension

A simple plugin to allow for JSON patch diff's to be generated from originally populated data vs user inputed data

Install: npm install mutt-forms-json-patch --save

Usage:

import Mutt from 'mutt-forms'
import MuttJsonPatch from 'mutt-forms-json-patch'

Mutt.use(MuttJsonPatch)

let form = Mutt({}, {})

form.populate({
  name: 'Test'
})

// Some changes to the form...

let patch = form.getJSONPatch()

Package Sidebar

Install

npm i @mutt/extension-json-patch

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.34 kB

Total Files

5

Last publish

Collaborators

  • stevenroberts-bbm
  • lcgreen
  • chris.stroud
  • nicksnell
  • andypattendenbbm
  • samhicks1985
  • shaunkrd
  • guyf
  • ant_p
  • muttbot
  • andyflynn-bbm
  • purepear
  • alexrussell
  • batornator
  • sugarbits
  • denis.gruba-bbm