1 |
|
2 |
|
3 | # rehype-sort-attribute-values
|
4 |
|
5 | [![Build][build-badge]][build]
|
6 | [![Coverage][coverage-badge]][coverage]
|
7 | [![Downloads][downloads-badge]][downloads]
|
8 | [![Size][size-badge]][size]
|
9 | [![Sponsors][sponsors-badge]][collective]
|
10 | [![Backers][backers-badge]][collective]
|
11 | [![Chat][chat-badge]][chat]
|
12 |
|
13 | Sort attribute values.
|
14 |
|
15 | This optimizes for repetition-based compression (such as GZip).
|
16 |
|
17 | ## Install
|
18 |
|
19 | [npm][]:
|
20 |
|
21 | ```sh
|
22 | npm install rehype-sort-attribute-values
|
23 | ```
|
24 |
|
25 | ## Example
|
26 |
|
27 | ##### In
|
28 |
|
29 | ```html
|
30 | <div class="qux quux foo bar"></div>
|
31 | ```
|
32 |
|
33 | ##### Out
|
34 |
|
35 | ```html
|
36 | <div class="bar foo quux qux"></div>
|
37 | ```
|
38 |
|
39 | ## Contribute
|
40 |
|
41 | See [`contributing.md`][contributing] in [`rehypejs/.github`][health] for ways
|
42 | to get started.
|
43 | See [`support.md`][support] for ways to get help.
|
44 |
|
45 | This project has a [code of conduct][coc].
|
46 | By interacting with this repository, organization, or community you agree to
|
47 | abide by its terms.
|
48 |
|
49 | ## License
|
50 |
|
51 | [MIT][license] © [Titus Wormer][author]
|
52 |
|
53 | [build-badge]: https://img.shields.io/travis/rehypejs/rehype-minify.svg
|
54 |
|
55 | [build]: https://travis-ci.org/rehypejs/rehype-minify
|
56 |
|
57 | [coverage-badge]: https://img.shields.io/codecov/c/github/rehypejs/rehype-minify.svg
|
58 |
|
59 | [coverage]: https://codecov.io/github/rehypejs/rehype-minify
|
60 |
|
61 | [downloads-badge]: https://img.shields.io/npm/dm/rehype-sort-attribute-values.svg
|
62 |
|
63 | [downloads]: https://www.npmjs.com/package/rehype-sort-attribute-values
|
64 |
|
65 | [size-badge]: https://img.shields.io/bundlephobia/minzip/rehype-sort-attribute-values.svg
|
66 |
|
67 | [size]: https://bundlephobia.com/result?p=rehype-sort-attribute-values
|
68 |
|
69 | [sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg
|
70 |
|
71 | [backers-badge]: https://opencollective.com/unified/backers/badge.svg
|
72 |
|
73 | [collective]: https://opencollective.com/unified
|
74 |
|
75 | [chat-badge]: https://img.shields.io/badge/chat-spectrum-7b16ff.svg
|
76 |
|
77 | [chat]: https://spectrum.chat/unified/rehype
|
78 |
|
79 | [npm]: https://docs.npmjs.com/cli/install
|
80 |
|
81 | [health]: https://github.com/rehypejs/.github
|
82 |
|
83 | [contributing]: https://github.com/rehypejs/.github/blob/main/contributing.md
|
84 |
|
85 | [support]: https://github.com/rehypejs/.github/blob/main/support.md
|
86 |
|
87 | [coc]: https://github.com/rehypejs/.github/blob/main/code-of-conduct.md
|
88 |
|
89 | [license]: https://github.com/rehypejs/rehype-minify/blob/main/license
|
90 |
|
91 | [author]: https://wooorm.com
|