# html-minifier-es6

> Support dirty ES6 minifying.

Latest version **3.5.9** (published 2020-07-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install html-minifier-es6
pnpm add html-minifier-es6
yarn add html-minifier-es6
bun add html-minifier-es6
```

Provides the command `html-minifier`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.5.9 |
| Published | 2020-07-27 |
| First published | 2020-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 12 |
| Unpacked size | 78.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Juriy "kangax" Zaytsev |
| Maintainers | crafter999 |
| Keywords | cli, compress, compressor, css, html, htmlmin, javascript, min, minification, minifier, minify, optimize, optimizer, pack, packer, parse, parser, uglifier, uglify |

## Links

- npm: https://www.npmjs.com/package/html-minifier-es6
- Repository: https://github.com/crafter999/html-minifier
- Issues: https://github.com/crafter999/html-minifier/issues
- npm.io page: https://npm.io/package/html-minifier-es6

## Dependencies (12)

- [he](https://npm.io/package/he.md) 1.1.x
- [ncname](https://npm.io/package/ncname.md) 1.0.x
- [clean-css](https://npm.io/package/clean-css.md) 4.1.x
- [commander](https://npm.io/package/commander.md) 2.12.x
- [relateurl](https://npm.io/package/relateurl.md) 0.2.x
- [uglify-es](https://npm.io/package/uglify-es.md) 3.3.x
- [uglify-js](https://npm.io/package/uglify-js.md) 3.3.x
- [camel-case](https://npm.io/package/camel-case.md) 3.0.x
- [param-case](https://npm.io/package/param-case.md) 2.1.x
- [@types/clean-css](https://npm.io/package/@types/clean-css.md) ^4.2.2
- [@types/relateurl](https://npm.io/package/@types/relateurl.md) ^0.2.28
- [@types/uglify-js](https://npm.io/package/@types/uglify-js.md) ^3.9.3

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 3.5.9 (latest) — 2020-07-27
- 3.5.8 — 2020-07-26

## README

# Html-Minifier for ES6 (incl. TS definitions)
This is a fork that adds a quick & dumb uglifying support for ES6

# Actual repo
<https://github.com/kangax/html-minifier>


# How to use

Install using the following command

````
npm install html-minifier-es6
````

Enable it using "es6" in `minifyJS` options like the following example
````
minify(html, {
  removeComments: true,
  minifyJS: "es6", // <------
  collapseWhitespace: true
});
````

---
_Source: https://npm.io/package/html-minifier-es6 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
