unified

Project:rehypejs/rehype-minify

Package:rehype-minify-event-handler@2.0.1

  1. Dependencies:5·Dependents:2
  2. rehype plugin to Mminify event handler attributes
  1. unified 135
  2. plugin 123
  3. html 100
  4. rehype 70
  5. rehype-plugin 49
  6. minify 30
  7. mangle 30
  8. script 10
  9. javascript 10

rehype-minify-event-handler

Build Coverage Downloads Size Sponsors Backers Chat

Minify event handler attributes.

Install

npm:

npm install rehype-minify-event-handler

Example

In
<h1 onclick="javascript:alert(false)">Hello</h1>
Out
<h1 onclick="alert(!1)">Hello</h1>

Contribute

See contributing.md in rehypejs/.github for ways to get started. See support.md for ways to get help.

This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.

License

MIT © Titus Wormer