Beautify HTML, JS, CSS, and JSON in the browser or in Node.js!
npm install simply-beautiful
Site | NPM Module | GitHub Repo
simply-beautiful will beautify (pretty print) any web language including HTML, CSS, Javascript, and even JSON! Configure your own indent size and more!

shell
npm install simply-beautiful
`
If you plan to use simply-beautiful in a browser environment, you will probably need to use Webpack, Browserify, or a similar service to compile it.`js
const beautify = require('simply-beautiful');
`$3
Install with CDN if you plan to use Simply Beautiful only in a browser environment.
`html
`⚡️ Using Simply Beautiful
$3
After you have followed the install step, you can start using simply-beautiful with your website or software!
`js
var options = {
indent_size: 2,
// ...
}
console.log(beautify.html('', options));
console.log(beautify.css('p { color: red; text-align: center; }', options));
console.log(beautify.js("function test() { (function() { console.log('Hello World!') }()); }", options));
console.log(beautify.json('{ "top": { "middle": { "bottom": 69 } } }', options));
`🧩 Extending Capabilities
$3
Find a kitchen-sink example of the options you can supply to customize the output of the beautifier!
`js
var options = {
indent_size: 4,
space_before_conditional: true,
jslint_happy: true,
max_char: 0,
}
``Based on this pen here.
Ask us to have your project listed! :)