sys-prettier-json
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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 - ishin.pie@gmail.com

Readme

Keywords

Package Sidebar

Install

npm i sys-prettier-json

Weekly Downloads

87

Version

1.0.1

License

MIT

Unpacked Size

11.5 kB

Total Files

9

Last publish

Collaborators

  • ishin