JS Beautifier is an open source tool for beautifying minified code, allowing developers to take a blob of text and transform it into an indented block of code (again).
JS Beautifier is available as a bookmarklet, a Python CLI, a Node.js CLI, or Web-based utility.
Besides raw CSS, LESS syntax is also supported.
Features:
Works with JSON and JSONP data
Customize wrapping style
Detects packers and obfuscators
Can break lines on chained methods
Can preserve empty lines
Can keep array indentation
Can keep a space before conditional: "if(x)" / "if (x)"
Can use JSLint-happy formatting tweaks
Can unescape printable chars
Set custom indentation
Set braces display position
What is new in this release:
- Initial implementation of comma-first formatting - Diff-friendly literals!
- CSS: Add newline between rules
- LESS: improved function parameter formatting
- HTML: options for wrapping attributes
- General bug fixing
What is new in version 1.5.5:
- Initial implementation of comma-first formatting - Diff-friendly literals!
- CSS: Add newline between rules
- LESS: improved function parameter formatting
- HTML: options for wrapping attributes
- General bug fixing
Requirements:
- JavaScript enabled on client side
Comments not found