{"library":"hast-util-heading-rank","type":"library","category":null,"description":"hast-util-heading-rank is a specialized utility within the unified ecosystem, designed to determine the rank (or level) of HTML heading elements (h1-h6) within a HAST (Hypertext Abstract Syntax Tree) node. The current stable version is 3.0.0. As part of the unified collective, it maintains a consistent release cadence, with major versions often dropping support for unmaintained Node.js versions and introducing breaking changes, particularly concerning module systems and type definitions. Its primary differentiator is its focused role in parsing and analyzing HAST structures, providing a clean, immutable API to query heading levels without altering the tree. This contrasts with related utilities like `hast-util-shift-heading`, which is designed to modify heading ranks, or `hast-util-heading`, which merely checks if a node is a heading.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript","unist","hast","hast-util","util","utility","html","heading","rank","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install hast-util-heading-rank","imports":["import { headingRank } from 'hast-util-heading-rank'","import { headingRank } from 'https://esm.sh/hast-util-heading-rank@3'","import { headingRank } from 'hast-util-heading-rank'"]},{"cmd":"yarn add hast-util-heading-rank","imports":[]},{"cmd":"pnpm add hast-util-heading-rank","imports":[]}],"homepage":null,"github":"https://github.com/syntax-tree/hast-util-heading-rank","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/hast-util-heading-rank","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-rank/compatibility"}}