benjamine / jsondiffpatch

Diff & patch JavaScript objects
MIT License
4.77k stars 464 forks source link

[question] how to using JSONFormatter when install this package via npm #369

Closed Verten closed 3 months ago

Verten commented 3 months ago

As titled, when install this package via NPM, how to use the formatter?

Methuselah96 commented 3 months ago

Here's how to import it:

import * as jsonpatchFormatter from 'jsondiffpatch/formatters/jsonpatch'

Let me know if you have any other questions!

Verten commented 3 months ago

Thanks! it works.