{"_id":"html-url-attributes","_rev":"3501823","name":"html-url-attributes","description":"Map of URL attributes in HTML","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"time":{"modified":"2024-08-27T20:08:49.000Z","created":"2016-09-08T13:13:05.030Z","3.0.0":"2023-08-30T15:20:08.969Z","2.0.0":"2021-08-01T19:05:45.764Z","1.0.3":"2020-07-02T11:12:19.700Z","1.0.2":"2020-03-21T18:27:53.533Z","1.0.1":"2019-06-01T13:39:44.203Z","1.0.0":"2016-09-08T13:13:05.030Z"},"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":{"3.0.0":{"name":"html-url-attributes","version":"3.0.0","description":"Map of URL attributes in HTML","license":"MIT","keywords":["attribute","attribute","html","property","url"],"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","exports":"./index.js","scripts":{},"typeCoverage":{"atLeast":100,"detail":true,"ignoreCatch":true,"strict":true},"xo":false,"_id":"html-url-attributes@3.0.0","gitHead":"142a16cf75ea59ab9a32b1a38e02cc42cdca3f6d","types":"./index.d.ts","homepage":"https://github.com/rehypejs/rehype-minify/tree/main#readme","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"shasum":"fc4abf0c3fb437e2329c678b80abb3c62cff6f08","size":2643,"noattachment":false,"key":"/html-url-attributes/-/html-url-attributes-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-url-attributes/download/html-url-attributes-3.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-url-attributes_3.0.0_1693408808773_0.5355828506804505"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-30T15:20:08.969Z","publish_time":1693408808969,"_source_registry_name":"default","_cnpm_publish_time":1693408808969},"2.0.0":{"name":"html-url-attributes","version":"2.0.0","description":"Map of URL attributes in HTML","license":"MIT","keywords":["html","attribute","property","url","attribute"],"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","scripts":{"build":"rimraf \"*.d.ts\" && tsc && type-coverage"},"xo":false,"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"homepage":"https://github.com/rehypejs/rehype-minify/tree/main#readme","_id":"html-url-attributes@2.0.0","_nodeVersion":"16.2.0","_npmVersion":"7.18.1","dist":{"shasum":"f43d1a4f80334d087e655e89f1dd8960833bfc13","size":1823,"noattachment":false,"key":"/html-url-attributes/-/html-url-attributes-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-url-attributes/download/html-url-attributes-2.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-url-attributes_2.0.0_1627844745611_0.35574291912069134"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-25T06:43:12.359Z","publish_time":1627844745764,"_cnpm_publish_time":1627844745764},"1.0.3":{"name":"html-url-attributes","version":"1.0.3","description":"Map of URL attributes in HTML","license":"MIT","keywords":["html","attribute","property","url","attribute"],"repository":{"type":"git","url":"https://github.com/rehypejs/rehype-minify/tree/main/packages/html-url-attributes"},"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"}],"xo":false,"_id":"html-url-attributes@1.0.3","_nodeVersion":"14.0.0","_npmVersion":"6.14.5","dist":{"shasum":"5ead013f18401f8adff9f57ec00fffe321592d75","size":1300,"noattachment":false,"key":"/html-url-attributes/-/html-url-attributes-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-url-attributes/download/html-url-attributes-1.0.3.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-url-attributes_1.0.3_1593688339599_0.5488090886519101"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-25T06:43:11.413Z","publish_time":1593688339700,"_cnpm_publish_time":1593688339700},"1.0.2":{"name":"html-url-attributes","version":"1.0.2","description":"Map of URL attributes in HTML","license":"MIT","keywords":["html","attribute","property","url","attribute"],"repository":{"type":"git","url":"https://github.com/rehypejs/rehype-minify/tree/master/packages/html-url-attributes"},"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"}],"xo":false,"_id":"html-url-attributes@1.0.2","_nodeVersion":"13.10.1","_npmVersion":"6.14.3","dist":{"shasum":"7820292cd1e329db6fd7b2d0dfa4b045ebcc6a20","size":1300,"noattachment":false,"key":"/html-url-attributes/-/html-url-attributes-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-url-attributes/download/html-url-attributes-1.0.2.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-url-attributes_1.0.2_1584815273407_0.06485549722973616"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-25T06:43:10.489Z","publish_time":1584815273533,"_cnpm_publish_time":1584815273533},"1.0.1":{"name":"html-url-attributes","version":"1.0.1","description":"Map of URL attributes in HTML","license":"MIT","keywords":["whitespace","white","space","sensitive","tagname","tag","name"],"repository":{"type":"git","url":"https://github.com/rehypejs/rehype-minify/tree/master/packages/html-url-attributes"},"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"}],"xo":false,"_id":"html-url-attributes@1.0.1","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"8c1d1cc97422129c59d23e15c85f06d290d142a5","size":1303,"noattachment":false,"key":"/html-url-attributes/-/html-url-attributes-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-url-attributes/download/html-url-attributes-1.0.1.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-url-attributes_1.0.1_1559396384053_0.10061258986712152"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-25T06:43:09.573Z","publish_time":1559396384203,"_cnpm_publish_time":1559396384203},"1.0.0":{"name":"html-url-attributes","version":"1.0.0","description":"Map of URL attributes in HTML","license":"MIT","keywords":["whitespace","white","space","sensitive","tagname","tag","name"],"repository":{"type":"git","url":"https://github.com/wooorm/rehype-minify/tree/master/packages/html-url-attributes"},"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.json"],"_id":"html-url-attributes@1.0.0","scripts":{},"_shasum":"7b4c8e95a95fde993a375be1a162bb2cb058e7c2","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"7b4c8e95a95fde993a375be1a162bb2cb058e7c2","size":750,"noattachment":false,"key":"/html-url-attributes/-/html-url-attributes-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html-url-attributes/download/html-url-attributes-1.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/html-url-attributes-1.0.0.tgz_1473340383600_0.819866287522018"},"directories":{},"_cnpmcore_publish_time":"2021-12-25T06:43:08.676Z","publish_time":1473340385030,"_cnpm_publish_time":1473340385030}},"readme":"<!--This file is generated-->\n\n# html-url-attributes\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][funding-sponsors-badge]][funding]\n[![Backers][funding-backers-badge]][funding]\n[![Chat][chat-badge]][chat]\n\nUtility with info on URL attributes.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`urlAttributes`](#urlattributes)\n*   [Syntax](#syntax)\n*   [Syntax tree](#syntax-tree)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package contains info on attributes that have URLs as values.\n\n## When should I use this?\n\nYou can use this package any time you’re rewriting URLs.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install html-url-attributes\n```\n\nIn Deno with [`esm.sh`][esm-sh]:\n\n```js\nimport {urlAttributes} from 'https://esm.sh/html-url-attributes@3'\n```\n\nIn browsers with [`esm.sh`][esm-sh]:\n\n```html\n<script type=\"module\">\n  import {urlAttributes} from 'https://esm.sh/html-url-attributes@3?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {urlAttributes} from 'html-url-attributes'\n\nconsole.log(urlAttributes.formAction)\n//=> ['button', 'input']\nconsole.log(urlAttributes.href)\n//=> ['a', 'area', 'base', 'link']\n```\n\n## API\n\nThis package exports the identifier\n`urlAttributes`.\nThere is no default export.\n\n### `urlAttributes`\n\nHTML URL properties (`Record<string, Array<string> | null>`).\n\nEach key is a property name and each value is a list of tag names it applies\nto or `null` if it applies to all elements.\n\n## Syntax\n\nHTML is parsed according to WHATWG HTML (the living standard), which is also\nfollowed by all browsers.\n\n## Syntax tree\n\nThe syntax tree used is [hast][].\n\n## Types\n\nThis package is fully typed with [TypeScript][].\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line,\n`html-url-attributes@^3`,\ncompatible with Node.js 16.\n\n## Security\n\nAs **rehype** works on HTML and improper use of HTML can open you up to a\n[cross-site scripting (XSS)][xss] attack, use of rehype can also be unsafe.\nUse [`rehype-sanitize`][rehype-sanitize] to make the tree safe.\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[author]: https://wooorm.com\n\n[build]: https://github.com/rehypejs/rehype-minify/actions\n\n[build-badge]: https://github.com/rehypejs/rehype-minify/workflows/main/badge.svg\n\n[chat]: https://github.com/rehypejs/rehype/discussions\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[coc]: https://github.com/rehypejs/.github/blob/main/code-of-conduct.md\n\n[contributing]: https://github.com/rehypejs/.github/blob/main/contributing.md\n\n[coverage]: https://codecov.io/github/rehypejs/rehype-minify\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/rehypejs/rehype-minify.svg\n\n[downloads]: https://www.npmjs.com/package/html-url-attributes\n\n[downloads-badge]: https://img.shields.io/npm/dm/html-url-attributes.svg\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esm-sh]: https://esm.sh\n\n[funding]: https://opencollective.com/unified\n\n[funding-backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[funding-sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[hast]: https://github.com/syntax-tree/hast\n\n[health]: https://github.com/rehypejs/.github\n\n[license]: https://github.com/rehypejs/rehype-minify/blob/main/license\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[rehype-sanitize]: https://github.com/rehypejs/rehype-sanitize\n\n[size]: https://bundlejs.com/?q=html-url-attributes\n\n[size-badge]: https://img.shields.io/bundlejs/size/html-url-attributes\n\n[support]: https://github.com/rehypejs/.github/blob/main/support.md\n\n[typescript]: https://www.typescriptlang.org\n\n[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting\n","_attachments":{},"homepage":"https://github.com/rehypejs/rehype-minify/tree/main#readme","bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"license":"MIT"}