文件名称:json-structure-diff:比较JSON对象以获取结构相等性,尽管实际内容有所不同
文件大小:8KB
文件格式:ZIP
更新时间:2024-05-21 14:48:52
JavaScript
json-结构差异 比较JSON对象以获取结构相等性,尽管实际内容有所不同 安装 npm install --save json-structure-diff 或者 bower install --save json-structure-diff 用法 NPM: var compare = require ( 'json-structure-diff' ) . compareJSONObjects ; var obj1 = { parent : 'nameOfObject' , content : { whatever : 'you' , want : { here : '!' } } } ; var obj2 = { parent : 'nameOfComparedObject' , content : { whatev
【文件预览】:
json-structure-diff-master
----.travis.yml(65B)
----.eslintrc(60B)
----index.js(5KB)
----package.json(1KB)
----test()
--------index.test.js(116B)
----example.html(987B)
----LICENSE(763B)
----example.js(610B)
----.jsinspectrc(109B)
----.gitignore(28B)
----README.md(2KB)
----.eslintignore(25B)
----bower.json(462B)
----.editorconfig(190B)