sys-prettier-json
v1.0.1
Published
Format JSON with beautiful color
Downloads
492
Readme
sys-prettier-json
Format JSON with beautiful color
Installation
npm i sys-prettier-json
or
yarn add sys-prettier-json
Usage
// index.js
import { prettyJson } from 'sys-prettier-json'
const json = JSON.parse('{ "sys": "Simple Yet Special", "awesome": true, "optional": null, "number": 2022}');
const htmlString = prettyJson(JSON.stringify(json, undefined, 4));
License
Distributed under the MIT License. See LICENSE.txt
for more information.
Contact
Ishin Vin - [email protected]