{"library":"hast-util-is-css-style","type":"library","category":null,"description":"hast-util-is-css-style is a focused utility from the unified ecosystem, specifically designed to inspect HAST (HTML Abstract Syntax Tree) nodes. Its primary function is to determine whether a given HAST node represents an HTML <style> element that is intended to contain CSS. This utility is currently stable at version 3.0.1 and is part of a larger monorepo (rehypejs/rehype-minify) which tends to release updates synchronously across related packages, especially for major ecosystem changes (e.g., Node.js version support, ESM-only shifts). Its key differentiator lies in its deep integration with the hast specification, ensuring accurate identification of CSS style elements based on their type attribute, including default cases and various text/css variations, which is crucial for tools that parse, transform, or optimize HTML content.","language":"javascript","status":"active","version":"3.0.1","tags":["javascript","css","hast","hast-util","html","style","unist","util","utility","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install hast-util-is-css-style","imports":["import {isCssStyle} from 'hast-util-is-css-style'","import type {Node} from 'hast'","import {h} from 'hastscript'"]},{"cmd":"yarn add hast-util-is-css-style","imports":[]},{"cmd":"pnpm add hast-util-is-css-style","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-css-style","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-css-style/compatibility"}}