pretson
v1.0.7-min3
Published
Make JSON pretty in one single command. Lightweight and simple! (173B gzipped)
Downloads
7
Readme
Pretson
const p = require("pretson");
// Prettify JSON
p.json({ 1: "one", 2: "two" });
// Prettify JSON string
p.string(`{"1":"one","2":"two"}`);
// {
// "1": "one",
// "2": "two"
// }