{"_id":"rehype-sort-attribute-values","_rev":"386397","name":"rehype-sort-attribute-values","description":"rehype plugin to sort attribute values","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"time":{"modified":"2021-08-04T03:25:20.000Z","created":"2016-09-08T13:13:38.782Z","4.0.0":"2021-08-01T19:07:26.045Z","3.0.2":"2020-07-02T11:14:27.252Z","3.0.1":"2020-03-21T18:29:57.219Z","3.0.0":"2019-09-10T10:20:49.038Z","2.0.1":"2019-06-01T13:42:52.281Z","2.0.0":"2018-11-17T18:17:09.512Z","1.0.1":"2017-06-20T11:28:52.151Z","1.0.0":"2016-09-08T13:13:38.782Z"},"users":{},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-minify.git#main"},"versions":{"4.0.0":{"name":"rehype-sort-attribute-values","version":"4.0.0","description":"rehype plugin to sort attribute values","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","minify","mangle","sort","attribute","value"],"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-minify.git#main"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/hast":"^2.0.0","hast-util-is-element":"^2.0.0","unified":"^10.0.0","unist-util-visit":"^4.0.0"},"scripts":{"build":"rimraf \"*.d.ts\" && tsc && type-coverage","test":"node --conditions development test.js"},"xo":false,"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"homepage":"https://github.com/rehypejs/rehype-minify/tree/main#readme","_id":"rehype-sort-attribute-values@4.0.0","_nodeVersion":"16.2.0","_npmVersion":"7.18.1","dist":{"shasum":"6a1baaced2f984ebed9aa201145c85cbc1c76880","size":2995,"noattachment":false,"key":"/rehype-sort-attribute-values/-/rehype-sort-attribute-values-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-sort-attribute-values/download/rehype-sort-attribute-values-4.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-sort-attribute-values_4.0.0_1627844845914_0.10242880625669804"},"_hasShrinkwrap":false,"publish_time":1627844846045,"_cnpm_publish_time":1627844846045},"3.0.2":{"name":"rehype-sort-attribute-values","version":"3.0.2","description":"rehype plugin to sort attribute values","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","minify","mangle","sort","attribute","value"],"repository":{"type":"git","url":"https://github.com/rehypejs/rehype-minify/tree/main/packages/rehype-sort-attribute-values"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"dependencies":{"hast-util-is-element":"^1.0.0","unist-util-visit":"^2.0.0","x-is-array":"^0.1.0"},"xo":false,"_id":"rehype-sort-attribute-values@3.0.2","_nodeVersion":"14.0.0","_npmVersion":"6.14.5","dist":{"shasum":"7f4b41c2dc46a67c26d42bc9fd872ab76fece194","size":2219,"noattachment":false,"key":"/rehype-sort-attribute-values/-/rehype-sort-attribute-values-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-sort-attribute-values/download/rehype-sort-attribute-values-3.0.2.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-sort-attribute-values_3.0.2_1593688467059_0.6457389877042237"},"_hasShrinkwrap":false,"publish_time":1593688467252,"_cnpm_publish_time":1593688467252},"3.0.1":{"name":"rehype-sort-attribute-values","version":"3.0.1","description":"rehype plugin to sort attribute values","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","minify","mangle","sort","attribute","value"],"repository":{"type":"git","url":"https://github.com/rehypejs/rehype-minify/tree/master/packages/rehype-sort-attribute-values"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"dependencies":{"hast-util-is-element":"^1.0.0","unist-util-visit":"^2.0.0","x-is-array":"^0.1.0"},"xo":false,"_id":"rehype-sort-attribute-values@3.0.1","_nodeVersion":"13.10.1","_npmVersion":"6.14.3","dist":{"shasum":"1a519ef057c0075fbb228c1cb947b978c2ac62f8","size":2222,"noattachment":false,"key":"/rehype-sort-attribute-values/-/rehype-sort-attribute-values-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-sort-attribute-values/download/rehype-sort-attribute-values-3.0.1.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-sort-attribute-values_3.0.1_1584815397102_0.27760226917219977"},"_hasShrinkwrap":false,"publish_time":1584815397219,"_cnpm_publish_time":1584815397219},"3.0.0":{"name":"rehype-sort-attribute-values","version":"3.0.0","description":"rehype plugin to sort attribute values","license":"MIT","keywords":["unified","rehype","hast","sort","attribute","value"],"repository":{"type":"git","url":"https://github.com/rehypejs/rehype-minify/tree/master/packages/rehype-sort-attribute-values"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"dependencies":{"hast-util-is-element":"^1.0.0","unist-util-visit":"^2.0.0","x-is-array":"^0.1.0"},"xo":false,"_id":"rehype-sort-attribute-values@3.0.0","_nodeVersion":"12.2.0","_npmVersion":"6.11.2","dist":{"shasum":"8aed841879f24bca2395a609c38cdbdcc0840368","size":2196,"noattachment":false,"key":"/rehype-sort-attribute-values/-/rehype-sort-attribute-values-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-sort-attribute-values/download/rehype-sort-attribute-values-3.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-sort-attribute-values_3.0.0_1568110848943_0.5228229043708963"},"_hasShrinkwrap":false,"publish_time":1568110849038,"_cnpm_publish_time":1568110849038},"2.0.1":{"name":"rehype-sort-attribute-values","version":"2.0.1","description":"rehype plugin to sort attribute values","license":"MIT","keywords":["unified","rehype","hast","sort","attribute","value"],"repository":{"type":"git","url":"https://github.com/rehypejs/rehype-minify/tree/master/packages/rehype-sort-attribute-values"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"dependencies":{"hast-util-is-element":"^1.0.0","unist-util-visit":"^1.1.0","x-is-array":"^0.1.0"},"xo":false,"_id":"rehype-sort-attribute-values@2.0.1","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"2bb66a50e58f986368af14e9664fc720298da7d5","size":2198,"noattachment":false,"key":"/rehype-sort-attribute-values/-/rehype-sort-attribute-values-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-sort-attribute-values/download/rehype-sort-attribute-values-2.0.1.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-sort-attribute-values_2.0.1_1559396572168_0.4437434712363928"},"_hasShrinkwrap":false,"publish_time":1559396572281,"_cnpm_publish_time":1559396572281},"2.0.0":{"name":"rehype-sort-attribute-values","version":"2.0.0","description":"Sort attribute values","license":"MIT","keywords":["rehype","hast","sort","attribute","value"],"repository":{"type":"git","url":"https://github.com/rehypejs/rehype-minify/tree/master/packages/rehype-sort-attribute-values"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"dependencies":{"hast-util-is-element":"^1.0.0","unist-util-visit":"^1.1.0","x-is-array":"^0.1.0"},"xo":false,"_id":"rehype-sort-attribute-values@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"9f5f45537465477e4021f92541bb7c15ed3bff50","size":1608,"noattachment":false,"key":"/rehype-sort-attribute-values/-/rehype-sort-attribute-values-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-sort-attribute-values/download/rehype-sort-attribute-values-2.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-sort-attribute-values_2.0.0_1542478629415_0.7321882004406675"},"_hasShrinkwrap":false,"publish_time":1542478629512,"_cnpm_publish_time":1542478629512},"1.0.1":{"name":"rehype-sort-attribute-values","version":"1.0.1","description":"Sort attribute values","license":"MIT","keywords":["rehype","hast","sort","attribute","value"],"repository":{"type":"git","url":"https://github.com/wooorm/rehype-minify/tree/master/packages/rehype-sort-attribute-values"},"bugs":{"url":"https://github.com/wooorm/rehype-minify/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"files":["index.js","schema.json"],"dependencies":{"hast-util-has-property":"^1.0.0","hast-util-is-element":"^1.0.0","unist-util-visit":"^1.1.0","x-is-array":"^0.1.0"},"xo":false,"_id":"rehype-sort-attribute-values@1.0.1","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"e8c920f64c8eb7160bc0af55ce17a9fe9b8f3cc3","size":1182,"noattachment":false,"key":"/rehype-sort-attribute-values/-/rehype-sort-attribute-values-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-sort-attribute-values/download/rehype-sort-attribute-values-1.0.1.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-sort-attribute-values-1.0.1.tgz_1497958131189_0.9817592645995319"},"directories":{},"publish_time":1497958132151,"_cnpm_publish_time":1497958132151,"_hasShrinkwrap":false},"1.0.0":{"name":"rehype-sort-attribute-values","version":"1.0.0","description":"Sort attribute values","license":"MIT","keywords":["rehype","hast","sort","attribute","value"],"repository":{"type":"git","url":"https://github.com/wooorm/rehype-minify/tree/master/packages/rehype-sort-attribute-values"},"bugs":{"url":"https://github.com/wooorm/rehype-minify/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"files":["index.js","schema.json"],"dependencies":{"has":"^1.0.1","hast-util-has-property":"^1.0.0","hast-util-is-element":"^1.0.0","unist-util-visit":"^1.1.0","x-is-array":"^0.1.0"},"_id":"rehype-sort-attribute-values@1.0.0","scripts":{},"_shasum":"eea8a8513f04e1d950be0d9c0b9cfd31da7205eb","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"eea8a8513f04e1d950be0d9c0b9cfd31da7205eb","size":1171,"noattachment":false,"key":"/rehype-sort-attribute-values/-/rehype-sort-attribute-values-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-sort-attribute-values/download/rehype-sort-attribute-values-1.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rehype-sort-attribute-values-1.0.0.tgz_1473340417324_0.48406109493225813"},"directories":{},"publish_time":1473340418782,"_cnpm_publish_time":1473340418782,"_hasShrinkwrap":false}},"readme":"<!--This file is generated by `build-packages.js`-->\n\n# rehype-sort-attribute-values\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][sponsors-badge]][collective]\n[![Backers][backers-badge]][collective]\n[![Chat][chat-badge]][chat]\n\nSort attribute values.\n\nThis optimizes for repetition-based compression (such as GZip).\n\n## Install\n\nThis package is [ESM only][esm]:\nNode 12+ is needed to use it and it must be `imported`ed instead of `required`d.\n\n[npm][]:\n\n```sh\nnpm install rehype-sort-attribute-values\n```\n\nThis package exports no identifiers.\nThe default export is `rehypeSortAttributeValues`\n\n## Use\n\nOn the API:\n\n```diff\n import {unified} from 'unified'\n import rehypeParse from 'rehype-parse'\n+import rehypeSortAttributeValues from 'rehype-sort-attribute-values'\n import rehypeStringify from 'rehype-stringify'\n\n unified()\n   .use(rehypeParse)\n+  .use(rehypeSortAttributeValues)\n   .use(rehypeStringify)\n   .process('<span>some html</span>', function (err, file) {\n     console.error(report(err || file))\n     console.log(String(file))\n   })\n```\n\nOn the CLI:\n\n```sh\nrehype input.html --use sort-attribute-values --output output.html\n```\n\n## Example\n\n##### In\n\n```html\n<div class=\"qux quux foo bar\"></div>\n```\n\n##### Out\n\n```html\n<div class=\"bar foo quux qux\"></div>\n```\n\n## Contribute\n\nSee [`contributing.md`][contributing] in [`rehypejs/.github`][health] for ways\nto get started.\nSee [`support.md`][support] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n[build-badge]: https://github.com/rehypejs/rehype-minify/workflows/main/badge.svg\n\n[build]: https://github.com/rehypejs/rehype-minify/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/rehypejs/rehype-minify.svg\n\n[coverage]: https://codecov.io/github/rehypejs/rehype-minify\n\n[downloads-badge]: https://img.shields.io/npm/dm/rehype-sort-attribute-values.svg\n\n[downloads]: https://www.npmjs.com/package/rehype-sort-attribute-values\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/rehype-sort-attribute-values.svg\n\n[size]: https://bundlephobia.com/result?p=rehype-sort-attribute-values\n\n[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[collective]: https://opencollective.com/unified\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[chat]: https://github.com/rehypejs/rehype/discussions\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[health]: https://github.com/rehypejs/.github\n\n[contributing]: https://github.com/rehypejs/.github/blob/main/contributing.md\n\n[support]: https://github.com/rehypejs/.github/blob/main/support.md\n\n[coc]: https://github.com/rehypejs/.github/blob/main/code-of-conduct.md\n\n[license]: https://github.com/rehypejs/rehype-minify/blob/main/license\n\n[author]: https://wooorm.com\n","_attachments":{},"homepage":"https://github.com/rehypejs/rehype-minify/tree/main#readme","bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"license":"MIT"}