{"library":"hast-util-interactive","type":"library","category":null,"description":"hast-util-interactive is a focused utility within the unified ecosystem, specifically designed to determine if a given hast (Hypertext Abstract Syntax Tree) node constitutes \"interactive content\" according to the HTML specification. This package is particularly useful for tools that analyze or transform HTML content and need to identify elements like `<a>` with `href`, `<button>`, `<input>`, or `<video controls>` to enforce accessibility rules, validate content, or apply specific styling. The current stable version is 3.0.0. Maintained by the syntax-tree collective, it follows a release cadence tied to Node.js LTS cycles and hast ecosystem updates, providing TypeScript types for enhanced developer experience. Its primary differentiator is its precise implementation of the HTML interactive content algorithm for hast nodes, offering a reliable predicate function rather than a full parsing or transformation engine.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript","unist","hast","hast-util","util","utility","html","element","category","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install hast-util-interactive","imports":["import { interactive } from 'hast-util-interactive'","import type { Element } from 'hast'"]},{"cmd":"yarn add hast-util-interactive","imports":[]},{"cmd":"pnpm add hast-util-interactive","imports":[]}],"homepage":null,"github":"https://github.com/syntax-tree/hast-util-interactive","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/hast-util-interactive","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-interactive/compatibility"}}