{"id":15413443,"url":"https://github.com/wooorm/html-event-attributes","last_synced_at":"2025-04-19T09:45:53.473Z","repository":{"id":57267364,"uuid":"197350013","full_name":"wooorm/html-event-attributes","owner":"wooorm","description":"List of HTML event handler attributes","archived":false,"fork":false,"pushed_at":"2023-11-01T10:42:11.000Z","size":50,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T07:03:43.608Z","etag":null,"topics":["attribute","element","event","html"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wooorm.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":"funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"wooorm"}},"created_at":"2019-07-17T08:39:04.000Z","updated_at":"2024-09-23T15:44:24.000Z","dependencies_parsed_at":"2024-06-19T16:24:14.025Z","dependency_job_id":"02309f80-3910-40c0-b689-94e18ce0adc1","html_url":"https://github.com/wooorm/html-event-attributes","commit_stats":{"total_commits":33,"total_committers":1,"mean_commits":33.0,"dds":0.0,"last_synced_commit":"37073127a8313431f8e92146f83fb211e9432378"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fhtml-event-attributes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fhtml-event-attributes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fhtml-event-attributes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fhtml-event-attributes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wooorm","download_url":"https://codeload.github.com/wooorm/html-event-attributes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249666962,"owners_count":21308157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["attribute","element","event","html"],"created_at":"2024-10-01T16:57:06.178Z","updated_at":"2025-04-19T09:45:53.455Z","avatar_url":"https://github.com/wooorm.png","language":"JavaScript","readme":"# html-event-attributes\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nList of HTML event handler 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    *   [`htmlEventAttributes`](#htmleventattributes)\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 list of all HTML event handlers (`onclick`, etc).\nIt includes events from [HTML 4][html4] and [HTML][] (the living standard).\n\n## When should I use this?\n\nYou can use this package if you want to figure out whether an HTML attribute is\na known event handler.\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-event-attributes\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {htmlEventAttributes} from 'https://esm.sh/html-event-attributes@2'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import {htmlEventAttributes} from 'https://esm.sh/html-event-attributes@2?bundle'\n\u003c/script\u003e\n```\n\n## Use\n\n```js\nimport {htmlEventAttributes} from 'html-event-attributes'\n\nconsole.log(htmlEventAttributes.slice(0, 10))\n```\n\nYields:\n\n```js\n[\n  'onabort',\n  'onafterprint',\n  'onauxclick',\n  'onbeforeprint',\n  'onbeforeunload',\n  'onblur',\n  'oncancel',\n  'oncanplay',\n  'oncanplaythrough',\n  'onchange'\n]\n```\n\n## API\n\nThis package exports the identifier `htmlEventAttributes`.\nThere is no default export.\n\n### `htmlEventAttributes`\n\nList of HTML event handler attributes (`Array\u003cstring\u003e`).\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/svg-event-attributes`](https://github.com/wooorm/svg-event-attributes)\n    — list of SVG event attributes\n*   [`wooorm/html-element-attributes`](https://github.com/wooorm/html-element-attributes)\n    — map of HTML elements to attributes\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\u003c!-- Definition --\u003e\n\n[build-badge]: https://github.com/wooorm/html-event-attributes/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/html-event-attributes/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/html-event-attributes.svg\n\n[coverage]: https://codecov.io/github/wooorm/html-event-attributes\n\n[downloads-badge]: https://img.shields.io/npm/dm/html-event-attributes.svg\n\n[downloads]: https://www.npmjs.com/package/html-event-attributes\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/html-event-attributes.svg\n\n[size]: https://bundlephobia.com/result?p=html-event-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\n[html4]: https://www.w3.org/TR/html4/index/attributes.html\n\n[html]: https://html.spec.whatwg.org/multipage/indices.html\n","funding_links":["https://github.com/sponsors/wooorm"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fhtml-event-attributes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwooorm%2Fhtml-event-attributes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fhtml-event-attributes/lists"}