rehype-sort-attributes

Reorder attributes based on how often they occur.
This optimizes for repetition-based compression (such as GZip).
Install
npm:
npm install rehype-sort-attributes
Example
In
<div id="foo"><strong class="bar" id="baz">qux</strong></div>
Out
<div id="foo"><strong class="bar" id="baz">qux</strong></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, organization, or community you agree to
abide by its terms.
License
MIT © Titus Wormer