json5-to-table
json5-to-table copied to clipboard
一个将JSON数据转化为Table格式的工具,支持嵌套、数组。
hi i want to add some styles to excel file, like column size, color, bold header, any suggestion please !!
Bumps [terser](https://github.com/terser/terser) from 5.7.1 to 5.14.2. Changelog Sourced from terser's changelog. v5.14.2 Security fix for RegExps that should not be evaluated (regexp DDOS) Source maps improvements (#1211) Performance improvements in...
generateHTMLTable(data, schema, options)。 虽然有attributes可选属性,加入的是公共的属性控制,是否可以扩展一下到每个单元格也可以定制一个id,这样方便控制生成的表格,从而进行更加个性化的展示。 谢谢
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...
to md
是否可以增加一个实现,到Markdown的table。 由于受到md的限制,实现简单的二维表格即可。 网上看到一个,感觉还蛮好用的。 [JSON to Markdown Table](https://kdelmonte.github.io/json-to-markdown-table/) 供参考。
https://github.com/yetrun/json5-to-table/blob/c42d667443ce0a9d9163113d18cb5103b548836f/lib/generateExcel.js#L4 这里感觉多此一举,只要在文档中告诉使用者需要依赖这个包就行了,而且在这里使用捕获异常会导致有的打包工具(如rollup)无法编译出正确的代码,需要手动配置dynamicRequireTargets
解析异常
```POWERSHELL PS > json5-to-table -d C:\Users\he123\Desktop\123456\123456.json Error: 矩阵访问越界:[0, 0] at c._calcIndexInParent (C:\Users\he123\AppData\Roaming\npm\node_modules\json5-to-table\dist\bundle.js:1:6110) at c.setVal (C:\Users\he123\AppData\Roaming\npm\node_modules\json5-to-table\dist\bundle.js:1:5986) at t (C:\Users\he123\AppData\Roaming\npm\node_modules\json5-to-table\dist\bundle.js:1:895) at t (C:\Users\he123\AppData\Roaming\npm\node_modules\json5-to-table\dist\bundle.js:1:811) at t (C:\Users\he123\AppData\Roaming\npm\node_modules\json5-to-table\dist\bundle.js:1:544) at t (C:\Users\he123\AppData\Roaming\npm\node_modules\json5-to-table\dist\bundle.js:1:877) at t (C:\Users\he123\AppData\Roaming\npm\node_modules\json5-to-table\dist\bundle.js:1:811)...
你好!我用npm安装依赖后,在vue页面引用直接报错,能告诉我是我哪里操作有问题吗 
解析异常
 
(node:17332) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'writeTo') at t.exports (D:\Users\Desktop\request management\my-electron-app\node_modules\json5-to-table\dist\bundle.js:1:5197) at myfun (D:\Users\Desktop\request management\my-electron-app\main.js:45:7) at createWindow (D:\Users\Desktop\request management\my-electron-app\main.js:58:5) at D:\Users\Desktop\request management\my-electron-app\main.js:64:1 (Use `electron --trace-warnings ...` to...