{"library":"hast-util-is-body-ok-link","type":"library","category":null,"description":"hast-util-is-body-ok-link is a utility package within the `unified` ecosystem, specifically designed for working with HAST (HTML Abstract Syntax Tree) nodes. Its primary function is to determine if a given `link` element adheres to the “Body OK” criteria as defined by the WHATWG HTML standard, meaning it can safely exist within the `<body>` section of an HTML document rather than being restricted to the `<head>`. This utility is currently at version `3.0.1` and is maintained as part of the broader `rehypejs` collective. Releases typically align with major `unified` ecosystem updates, ensuring compatibility with other `hast` and `rehype` plugins. A key differentiator is its strict adherence to web standards and its integration into a comprehensive Markdown/HTML processing pipeline. It ships with full TypeScript type definitions, providing a robust and type-safe development experience for Node.js (version 16+) and browser environments.","language":"javascript","status":"active","version":"3.0.1","tags":["javascript","body","hast","hast-util","html","link","ok","unist","util","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install hast-util-is-body-ok-link","imports":["import { isBodyOkLink } from 'hast-util-is-body-ok-link'","import { isBodyOkLink } from 'hast-util-is-body-ok-link'","import type { Node } from 'hast'"]},{"cmd":"yarn add hast-util-is-body-ok-link","imports":[]},{"cmd":"pnpm add hast-util-is-body-ok-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-body-ok-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-body-ok-link/compatibility"}}