{"library":"hast-util-is-event-handler","type":"library","category":null,"description":"This package provides a utility function, `isEventHandler`, to check if a given string represents a potential HTML event handler attribute name. It primarily identifies strings starting with 'on' and having a length of five or more characters (e.g., 'onclick', 'onmouseover'), without performing validation on the actual event handler's existence or validity. As part of the `unified` and `hast` ecosystem, it is designed for processing HTML Abstract Syntax Trees. The current stable version is `3.0.1`, maintained within the `rehypejs` monorepo, which generally coordinates major releases across its packages. It is ESM-only and requires Node.js 16 or newer. This tool differentiates itself by its focused scope within the `hast` ecosystem, offering a lightweight and specific check for attribute names.","language":"javascript","status":"active","version":"3.0.1","tags":["javascript","event","handler","hast","hast-util","html","property","unist","util","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install hast-util-is-event-handler","imports":["import { isEventHandler } from 'hast-util-is-event-handler'","import { isEventHandler } from 'hast-util-is-event-handler'\nimport type { Handler } from 'hast-util-is-event-handler/lib'"]},{"cmd":"yarn add hast-util-is-event-handler","imports":[]},{"cmd":"pnpm add hast-util-is-event-handler","imports":[]}],"homepage":null,"github":"https://github.com/rehypejs/rehype-minify.git#main","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/hast-util-is-event-handler","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/hast-util-is-event-handler/compatibility"}}