@miggy92/clean-html

0.1.4 • Public • Published

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
}

Package Sidebar

Install

npm i @miggy92/clean-html

Weekly Downloads

1

Version

0.1.4

License

MIT

Unpacked Size

364 kB

Total Files

3

Last publish

Collaborators

  • miggy92