json-formatter-js:以漂亮HTML(纯JavaScript)呈现JSON对象

时间:2021-05-07 10:46:46
【文件属性】:
文件名称:json-formatter-js:以漂亮HTML(纯JavaScript)呈现JSON对象
文件大小:180KB
文件格式:ZIP
更新时间:2021-05-07 10:46:46
TypeScript JSON格式器 使用可折叠的导航呈现HTML中的JSON对象。 JSON Formatter作为启动。 这是同一模块的纯JavaScript实现。 用法 通过npm安装 npm install --save json-formatter-js 在页面的dist文件夹中包含json-formatter.js 。 import JSONFormatter from 'json-formatter-js' const myJSON = { ans : 42 } ; const formatter = new JSONFormatter ( myJSON ) ; document . body . appendChild ( formatter . render ( ) ) ; 原料药 JSONFormatter(json [, open [, config] ]) json ( Obje
【文件预览】:
json-formatter-js-master
----index.html(2KB)
----rollup.config.js(690B)
----.github()
--------workflows()
----yarn.lock(211KB)
----server.js(546B)
----rollup.dev.config.js(718B)
----webpack.config.js(673B)
----src()
--------style.less.d.ts(28B)
--------index.ts(13KB)
--------style.less(3KB)
--------helpers.ts(2KB)
----.npmignore(19B)
----demo()
--------giant.json(160KB)
--------webpack.config.js(226B)
--------index.js(2KB)
----.travis.yml(46B)
----tsconfig.json(342B)
----LICENSE(1KB)
----test()
--------spec.ts(7KB)
----README.md(3KB)
----mocks()
--------less.ts(19B)
----.gitignore(30B)
----package-lock.json(262KB)
----package.json(1KB)

网友评论