@naturalcycles/json2html
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

@naturalcycles/json2html

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

npm 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

Package Sidebar

Install

npm i @naturalcycles/json2html

Weekly Downloads

125

Version

1.1.1

License

MIT

Unpacked Size

19.2 kB

Total Files

20

Last publish

Collaborators

  • kirillgroshkov
  • kribor