1.1.1 • Published 3 years ago

@naturalcycles/json2html v1.1.1

Weekly downloads
163
License
MIT
Repository
github
Last release
3 years ago

@naturalcycles/json2html

Render arbitrary json as human-friendly html. CLI and API. Inspired by json.human.js

npm npm.io code style: prettier

Why

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.

Install

yarn add @naturalcycles/json2html

Examples

Sample output

# Render `my.json` to `my.json.html`
json2html my.json

# Render all json files in `someDir`
json2html 'someDir/**/*.json'

Packaging

  • engines.node >= 14.15: Latest Node.js LTS
  • main: dist/index.js: commonjs, es2020
  • types: dist/index.d.ts: typescript types
  • /src folder with source *.ts files included