{"library":"hast-util-is-conditional-comment","type":"library","category":null,"description":"This package, `hast-util-is-conditional-comment`, is a specialized utility within the unified (specifically rehype) ecosystem designed to determine if a given `hast` (Hypertext Abstract Syntax Tree) node represents an HTML conditional comment. Conditional comments are a legacy feature primarily used by older versions of Internet Explorer (discontinued after IE 9) and are generally recommended for removal in modern web development. The current stable version is 3.0.1. As part of the `unified` collective, it adheres to a release cadence tied to major `unified` ecosystem updates, ensuring compatibility with other `hast` and `unist` utilities. Key differentiators include its tight integration with the `hast` AST format, its ESM-only distribution, and its strict compatibility with maintained Node.js versions (currently Node.js 16+). It does not perform transformations but provides a focused predicate function for identifying this specific, non-standard HTML comment type.","language":"javascript","status":"active","version":"3.0.1","tags":["javascript","comment","conditional","hast","hast-util","html","unist","util","utility","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install hast-util-is-conditional-comment","imports":["import { isConditionalComment } from 'hast-util-is-conditional-comment'","import type { Node } from 'hast'","import { u } from 'unist-builder'"]},{"cmd":"yarn add hast-util-is-conditional-comment","imports":[]},{"cmd":"pnpm add hast-util-is-conditional-comment","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-conditional-comment","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-conditional-comment/compatibility"}}