A lightweight utility for formatting and minifying JSON strings. Provides functions to convert JSON to a pretty-printed string or a compact, whitespace-free format. Simple API with no dependencies, suitable for Node.js and browser environments. Current version 1.0.0, low release cadence. Differentiates by minimal footprint and zero dependencies.
npm install json-formatter-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Format and minify a JSON string with default import and named exports.
Wrap calls in try-catch or validate JSON via JSON.parse first.
Add declare module 'json-formatter-minifier' in a .d.ts file or use @ts-ignore.
Use import or configure bundler (e.g., Webpack module: { rules: ... }).npm install json-formatter-minifier
Check documentation: use named imports { formatJSON, minifyJSON }.No dependency data recorded yet.