{"name":"html-element-attributes","version":"2.0.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"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"main":"index.json","files":["index.json"],"dependencies":{},"devDependencies":{"bail":"^1.0.0","browserify":"^16.0.0","concat-stream":"^1.6.0","esmangle":"^1.0.1","hast-util-is-event-handler":"^1.0.0","hast-util-select":"^1.0.1","hast-util-to-string":"^1.0.0","prettier":"^1.12.0","rehype-parse":"^4.0.0","remark-cli":"^5.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.4.0","trim":"0.0.1","unified":"^6.1.5","xo":"^0.20.0"},"scripts":{"generate":"node build","format":"remark . -qfo && prettier --write '**/*.js' && xo --fix","build-bundle":"browserify index.json --bare -s htmlElementAttributes > html-element-attributes.js","build-mangle":"esmangle html-element-attributes.js > html-element-attributes.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test":"npm run generate && npm run format && npm run build && npm run test-api"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"no-var":"off","prefer-arrow-callback":"off"},"ignores":["html-element-attributes.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"752e002a416e19c79575c882ff838250c0c263bd","homepage":"https://github.com/wooorm/html-element-attributes#readme","_id":"html-element-attributes@2.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"integrity":"sha512-eZgT5wMPRqOCG9pIJ//IdX43i940XACFhKfgKUdspWUGsS/MXq+3ilrK5v6Esl/qxQpMnPt5+uVK443konZkNg==","shasum":"2c9fcbd4738c560b357d0232aa3449676b10ab77","tarball":"http://registry-npm.ywwl.com/html-element-attributes/download/html-element-attributes-2.0.0.tgz","fileCount":4,"unpackedSize":12058,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbMNyRCRA9TVsSAnZWagAAPkUP/11uDCYAGU1vGvwmHyo4\nknWQgiHSXhtB72aAf3kcrhaRZAttPPstlUHEGis3HfkC8t7Hm3e+I6zQxOcs\nqV5IQb7XaztxioIVVgnAByNI0x2Vr+irMoZ5JIv5rJkigzfuDllfxZjdZ5T5\nqoR5YKa/E8IwADLeW5GTPNEW9yC5t4Iji0d/3F4HfS+Vp7LsNr+UGqiPxRg6\n/1fNifegPmio7T1pquBcanBE9ThVDRNt62hdg6ZijomViRUAAMsopiVcpNkF\naJxO3Ru2vOVVhHh3DhxYb1Udm/4gajC27aTGBmn7+S/6p0EU3FfxkDQgsHXS\nyEtDLUiDhqPhqwcBNT5pohFfhzzs4f1G5YqYJHE8pGNhBsqb+qo1wkwnxpKE\nKUZ7QEdQ3uIixkioX4XMJa97GaKdfYfvVE8mMZ4K1YvsqgNH/IScbAcQHmkB\nT1LgoNkF9w8TReTW3Hht9wghPu5FEY4vazfcp6VqIc8xQyEp1c3+jeEtMnk3\nG2yfD7H8pAJK4L9KNErFagx3Df2sG/4IPkzdYpAE42Zx6FtleXRDjuqvttG1\niFNJTbKDvJ0wxrSpOeYy94bg79PEL7g6UmI8XHy/SZOgrgy1FH8GQBxqDbQZ\ndB35xvXkLL/nT4sah/TNSfxlITETPwpzJW45eIQ2H8agfUdhUelX5aOz8hg6\nItxD\r\n=QqgS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICEhGjB25aJaV9yr2ybEGdKzyDaJojJg/FJFK6NqKbCzAiAqnBoVaSVZfRMe99prXQVDR+GGwbiCRHnH7rdV5uXOng=="}],"size":3788,"noattachment":false,"key":"/html-element-attributes/-/html-element-attributes-2.0.0.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html-element-attributes_2.0.0_1529928849318_0.5399185847640444"},"_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":1529928849387,"_cnpm_publish_time":1529928849387,"dist-tags":{"latest":"3.5.0"}}