{"library":"hast-util-heading","type":"library","category":null,"description":"hast-util-heading is a highly specialized utility within the unified ecosystem, designed to programmatically check if a given HAST (Hypertext Abstract Syntax Tree) node represents a heading element (h1-h6, hgroup). The current stable version is 3.0.0. As part of the syntax-tree collective, it adheres to a release cadence that maintains compatibility with currently supported Node.js versions, typically dropping support for unmaintained Node.js versions with new major releases. Its key differentiator is its singular, focused purpose: providing a reliable, performant boolean check for heading elements, which is particularly useful in linting tools, accessibility checkers, or content transformers operating on HTML syntax trees. It is built for ESM-first environments and provides full TypeScript type definitions.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript","unist","hast","hast-util","util","utility","html","category","heading","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install hast-util-heading","imports":["import { heading } from 'hast-util-heading';","import type { Node } from 'hast';\nimport { heading } from 'hast-util-heading';"]},{"cmd":"yarn add hast-util-heading","imports":[]},{"cmd":"pnpm add hast-util-heading","imports":[]}],"homepage":null,"github":"https://github.com/syntax-tree/hast-util-heading","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/hast-util-heading","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-heading/compatibility"}}