PLUSHTML <*>
Plushtml is not a linter. It's an automated tool that reads a custom structure and prints out a standard HTML5 one. Plushtml allows you to write the following document structure :
<!-- Assets best written here --> <!-- Content best written here --> <!-- Scripts best written here -->
Plushtml doesn't care about the details of your code. It will try to print out your code structure as follows :
<!-- Assets best written here --> <!-- Content best written here --> <!-- Scripts best written here -->
Install
npm install plushtml
Example usage
const fs = require('fs');
const plushtml = require('plushtml');
fs.readFile('/path/to/input.html', 'utf8', function (err, html) {
if (err) throw err;
fs.writeFile('/path/to/output.html', plushtml(html), 'utf8', function (err) {
if (err) throw err;
});
});