0.1.4 • Published 4 years ago

@miggy92/clean-html v0.1.4

Weekly downloads
6
License
MIT
Repository
-
Last release
4 years ago

HTML cleaning tool that works in the browser based on https://github.com/kangax/html-minifier/

usage is

const minify = require('clean-html');
const minifiedText = minify(text, options);

Options are

{
  collapseBooleanAttributes = true,
  collapseWhitespace = true,
  removeNgAttributes = true,
  removeCssComments = true,
  removeHTMLComments = true,
  removeJS = true
}