Render arbitrary json as human-friendly html. CLI and API. Inspired by json.human.js
Sometimes you need to render some report to non-technical people, but too lazy to create a custom html/css template for it. Just throw your json into this library and enjoy the good-enough result.
yarn add @naturalcycles/json2html
# Render `my.json` to `my.json.html`
json2html my.json
# Render all json files in `someDir`
json2html 'someDir/**/*.json'
engines.node >= 14.15: Latest Node.js LTSmain: dist/index.js: commonjs, es2020types: dist/index.d.ts: typescript types/srcfolder with source*.tsfiles included