{"library":"pretty-data","type":"library","category":null,"description":"A library for pretty-printing and minifying XML, JSON, CSS, and SQL strings. Version 0.40.0 is the latest stable release; no active development since 2016. Lightweight with zero dependencies, it provides simple functions for formatting and minifying common data formats. Unlike formatters specific to one format (e.g., js-beautify for JS/HTML/CSS), pretty-data handles multiple formats in a single package, but lacks tree-shaking and is not modular. ESM is not supported; only CommonJS.","language":"javascript","status":"maintenance","version":"0.40.0","tags":["javascript","pretty print","beautify","minify","XML","JSON","CSS","SQL"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install pretty-data","imports":["const pd = require('pretty-data');","pd.xml.prettyPrint(xmlStr);\npd.xml.min(xmlStr);","pd.json.prettyPrint(jsonStr);\npd.json.min(jsonStr);","pd.css.prettyPrint(cssStr);\npd.css.min(cssStr);","pd.sql.prettyPrint(sqlStr);\npd.sql.min(sqlStr);"]},{"cmd":"yarn add pretty-data","imports":[]},{"cmd":"pnpm add pretty-data","imports":[]}],"homepage":"http://github.com/vkiryukhin/pretty-data","github":"http://github.com/vkiryukhin/pretty-data","docs":null,"changelog":null,"pypi":null,"npm":"pretty-data","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}