pretty-data2
JSON →A Node.js plugin for pretty-printing and minifying XML, JSON, CSS, and SQL text, with a stable version 0.40.1 and infrequent updates. Provides functions like pd.xml(), pd.json(), pd.css(), pd.sql() for beautification and corresponding *min variants for minification, with optional comment preservation for XML and CSS. Lightweight with no dependencies, suitable for formatting data on the server or in build tools. Differentiates from alternatives like js-beautify or prettier by focusing solely on these four formats and offering separate minification methods.
Resources
packagepretty-data2 ↗