{"library":"hast-util-is-css-link","type":"library","category":null,"description":"hast-util-is-css-link is a utility function within the unified (specifically rehype) ecosystem designed to determine if a given HAST (HTML Abstract Syntax Tree) node represents a `<link>` element that references a CSS stylesheet. It checks for a `rel` attribute containing 'stylesheet' and a compatible `type` attribute (no type, empty string, or 'text/css'). The package is currently at version 3.0.1 and is part of the actively maintained unified collective, which typically releases updates aligned with Node.js LTS versions and major ecosystem changes. It differentiates itself by providing a focused, robust, and tree-agnostic check adhering to WHATWG HTML standards, making it reliable for transformations and analysis of HTML in JavaScript environments.","language":"javascript","status":"active","version":"3.0.1","tags":["javascript","css","hast","hast-util","html","link","unist","util","utility","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install hast-util-is-css-link","imports":["import { isCssLink } from 'hast-util-is-css-link'","import type { Node } from 'hast'\nimport { isCssLink } from 'hast-util-is-css-link'"]},{"cmd":"yarn add hast-util-is-css-link","imports":[]},{"cmd":"pnpm add hast-util-is-css-link","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-link","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-link/compatibility"}}