unified

Project:rehypejs/rehype-minify

Package:rehype-minify-javascript-url@3.0.1

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

rehype-minify-javascript-url

Build Coverage Downloads Size Sponsors Backers Chat

Minify JavaScript URLs.

Install

npm:

npm install rehype-minify-javascript-url

Example

In
<img src="javascript:alert(true)">
Out
<img src="javascript:alert(!0)">

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