rehype-sort-attributes
rehype plugin to reorder attributes based on how often they occur
Last updated 3 months ago by wooorm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rehype-sort-attributes 
SYNC missed versions from official npm registry.

rehype-sort-attributes

Build Coverage Downloads Size Sponsors Backers Chat

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

Current Tags

  • 3.0.2                                ...           latest (3 months ago)

7 Versions

  • 3.0.2                                ...           3 months ago
  • 3.0.1                                ...           6 months ago
  • 3.0.0                                ...           a year ago
  • 2.0.1                                ...           a year ago
  • 2.0.0                                ...           2 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (2)
Downloads
Today 8
This Week 131
This Month 8
Last Day 40
Last Week 285
Last Month 1,255
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |