unified

Project:rehypejs/rehype-minify

Package:rehype-sort-attribute-values@3.0.0

  1. Dependencies:3·Dependents:5
  2. rehype plugin to sort attribute values
  1. unified 132
  2. hast 78
  3. rehype 74
  4. attribute 8
  5. sort 3
  6. value 3

rehype-sort-attribute-values

Build Coverage Downloads Size Sponsors Backers Chat

Sort attribute values.

This optimises for repetition-based compression (such as GZip).

Install

npm:

npm install rehype-sort-attribute-values

Example

In
<div class="qux quux foo bar"></div>
Out
<div class="bar foo quux qux"></div>

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, organisation, or community you agree to abide by its terms.

License

MIT © Titus Wormer