{"name":"html-element-attributes","version":"3.2.0","description":"Map of HTML elements to allowed attributes","license":"MIT","keywords":["html","element","tag","name","attribute","property","w3c","whatwg"],"repository":{"type":"git","url":"git+https://github.com/wooorm/html-element-attributes.git"},"bugs":{"url":"https://github.com/wooorm/html-element-attributes/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","devDependencies":{"@types/node":"^18.0.0","c8":"^7.0.0","hast-util-from-html":"^1.0.0","hast-util-select":"^5.0.0","hast-util-to-string":"^2.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^5.0.0","undici":"^5.0.0","xo":"^0.54.0"},"scripts":{"prepack":"npm run build && npm run format","generate":"node --conditions development build.js","build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --100 --reporter lcov npm run test-api","test":"npm run generate && npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"c8295c511f9f7d6add7969febaed49eb2fd0b2a9","homepage":"https://github.com/wooorm/html-element-attributes#readme","_id":"html-element-attributes@3.2.0","_nodeVersion":"19.8.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-wdtYaghl6M4N4Bp91QE9p1AS849PHoa1tPrkSmEhxgF4VnD04o5BrEaODc1XqPjjt5UmuzOJNn0hvoWu0514nQ==","shasum":"764b9c1fd66a079dd13efb6eca66daae10122038","tarball":"http://registry-npm.ywwl.com/html-element-attributes/download/html-element-attributes-3.2.0.tgz","fileCount":5,"unpackedSize":14248,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEI8/O/aj6cACKP274m7bFWOwEuw9glVKj8dvTdgPGYZAiEAyCEaKh1EDM3ej+Ql4SxpMTunK9M4cR7TzCxoiQsK4cw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkL+vNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqhfRAAgTWSINQna8v7BWsHbtLs6y1/exOvMw29kTCnZwuXGJFrPmHI\r\nV6gFIAFbTDxteYXKHg8Q2dEQVbjqsdMGnFirzHNaW9LSHIBTDf5SmfReFmOq\r\nSgbZJBp7qHGf5kKK87H9k/Tjv+esUqMTtkcygKWD6mE4IGLfVSkSGINT6NL+\r\nZBkroNF1a9zKqLBY3QOmUUqdiJDg1IzEIpD1yaZvDOyfMrEJh19bkmKSbjwo\r\ns0OqpT/sJ5MXQyRVqAC3CrgwdDB49uZ0iZmikmmvoUweuFGjUaQlPPpZUdMg\r\n/YaBs6xwwB6HTt8rFqZyDwV7v39xAilpUi48l2+AiXsJhQgdNNYHJWUXKSt3\r\n4wPMtYRC3sU5/7ma9wMgaKQknPSt9hI4Mf9bM3HH7n+dke4jO39fhg3Vsczg\r\n2+UuCFDHCMHz5obwfCQYuxotoDERR5cDF2WdOzJRqXjR/aIIe2e+14rD+9Q0\r\nHOnHTEanMvDpVKG4UwniBebkXo8JxQ6vlTW7ghvXFLxvh19wrnODj+sgj6ge\r\nZbUloFBEPo7+9k3ga3yo9iThNnyHRDhK3ZaAgFIIugrWxiCb2Fw0ByZF5azw\r\nTxT/LhXZ0lmmlcpStsbCPYW9xIKuedF9mC2nUYQGt5sbmcpl3I9RXXm31dDX\r\nlzLJU+67efRfJt6pYQdtGyIwpJmZjjkIGPA=\r\n=mlQ8\r\n-----END PGP SIGNATURE-----\r\n","size":4711,"noattachment":false,"key":"/html-element-attributes/-/html-element-attributes-3.2.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-element-attributes_3.2.0_1680862157232_0.76192472015288"},"_hasShrinkwrap":false,"readme":"# html-element-attributes\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nMap of HTML elements to allowed 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    *   [`htmlElementAttributes`](#htmlelementattributes)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis is a map of tag names to lists of allowed attributes.\nGlobal attributes are stored at the special tag name `*`.\nAll attributes from HTML 4 and the current living HTML spec are included.\n\n> 👉 **Note**: Includes deprecated attributes.\n\n> 👉 **Note**: Attributes which were not global in HTML 4 but are in HTML, are\n> only included in the list of global attributes.\n\n## When should I use this?\n\nYou can use this to figure out if certain attributes are allowed on certain\nHTML elements.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 14.14+, 16.0+), install with [npm][]:\n\n```sh\nnpm install html-element-attributes\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {htmlElementAttributes} from 'https://esm.sh/html-element-attributes@3'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {htmlElementAttributes} from 'https://esm.sh/html-element-attributes@3?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {htmlElementAttributes} from 'html-element-attributes'\n\nconsole.log(htmlElementAttributes['*'])\nconsole.log(htmlElementAttributes.ol)\n```\n\nYields:\n\n```js\n[\n  'accesskey',\n  'autocapitalize',\n  'autofocus',\n  'class',\n  // …\n  'style',\n  'tabindex',\n  'title',\n  'translate'\n]\n['compact', 'reversed', 'start', 'type']\n```\n\n## API\n\nThis package exports the identifier `htmlElementAttributes`.\nThere is no default export.\n\n### `htmlElementAttributes`\n\nMap of lowercase HTML elements to allowed attributes\n(`Record<string, Array<string>>`).\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports no additional types.\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 14.14+ and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe.\n\n## Related\n\n*   [`wooorm/web-namespaces`](https://github.com/wooorm/web-namespaces)\n    — list of web namespaces\n*   [`wooorm/html-tag-names`](https://github.com/wooorm/html-tag-names)\n    — list of HTML tag names\n*   [`wooorm/mathml-tag-names`](https://github.com/wooorm/mathml-tag-names)\n    — list of MathML tag names\n*   [`wooorm/svg-tag-names`](https://github.com/wooorm/svg-tag-names)\n    — list of SVG tag names\n*   [`wooorm/html-void-elements`](https://github.com/wooorm/html-void-elements)\n    — list of void HTML tag names\n*   [`wooorm/svg-element-attributes`](https://github.com/wooorm/svg-element-attributes)\n    — map of SVG elements to attributes\n*   [`wooorm/aria-attributes`](https://github.com/wooorm/aria-attributes)\n    — list of ARIA attributes\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definition -->\n\n[build-badge]: https://github.com/wooorm/html-element-attributes/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/html-element-attributes/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/html-element-attributes.svg\n\n[coverage]: https://codecov.io/github/wooorm/html-element-attributes\n\n[downloads-badge]: https://img.shields.io/npm/dm/html-element-attributes.svg\n\n[downloads]: https://www.npmjs.com/package/html-element-attributes\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/html-element-attributes.svg\n\n[size]: https://bundlephobia.com/result?p=html-element-attributes\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esmsh]: https://esm.sh\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n","publish_time":1680862157421,"_cnpm_publish_time":1680862157421,"dist-tags":{"latest":"3.5.0"}}