Beautify js, html and css.
npm i beautifile --save
Options of beautifile
can be find in json/beautify.json,
and could be overriden by ~/.beautify.json
.
const beautifile = require('beautifile');
beautife('ugly.js', (error, data) => {
if (error)
return console.error(error.message);
console.log(data);
});
MIT