vkbeautify is a JavaScript utility for pretty-printing and minifying XML, JSON, SQL, and CSS. The current stable version is 0.99.3, released with no active release cadence (last update years ago). It provides simple functions to beautify or minify each format, making it useful for formatting code snippets or logs. Its key differentiator is supporting multiple data formats (XML, JSON, SQL, CSS) in one small library, but it is largely unmaintained and may not handle edge cases or large files well compared to modern alternatives like prettier or js-beautify.
npm install vkbeautifyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates beautifying and minifying XML, JSON, SQL, and CSS strings.
Consider using prettier or js-beautify for modern formatting.
Use ' ' or '\t' instead of a number.
Always stringify objects before passing to json() or other functions.
Validate input before formatting, or wrap in try-catch.
Use import vkbeautify from 'vkbeautify' or const vkbeautify = require('vkbeautify').defaultEnsure the argument is a string; e.g., vkbeautify.json(JSON.stringify(obj))
Check import statement and ensure variable name matches (e.g., import vkbeautify from 'vkbeautify').
No dependency data recorded yet.