json-numeric-diff
v1.1.0
Published
Determine numeric differences between two objects
Downloads
7
Readme
json-numeric-diff
A very simple CLI + module that shows the difference between numeric values in two objects.
Options
--invert
- green for decreased values, red for increased--format
- how to show changed values:ratio
,percent
,delta
, ordifference
--percent
- shortcut for--format percent
--colors
- termcolors for increase and decrease. Default:green,red
Example
json-numeric-diff test/one.json test/two.json --invert --format percent
{
"a": "-50.00%",
"b": "Infinity",
"c": "99.90%",
"d": "Infinity"
}
License
MIT