{"library":"hast-util-from-html","type":"library","category":null,"description":"hast-util-from-html is a utility within the unifiedjs ecosystem that transforms serialized HTML strings into a HAST (Hypertext Abstract Syntax Tree) representation. The current stable version is 2.0.3. It maintains a relatively active release cadence, with recent patch releases addressing type issues and a major version bump (2.0.0) introducing significant changes like ESM-only support and Node.js 16+ requirement. This package is designed for scenarios where developers need to manually manipulate HTML syntax trees, offering granular control over parsing. It differentiates itself from `parse5` (a low-level HTML parser) by directly producing HAST nodes, and from higher-level abstractions like `rehype-parse`. For browser environments, `hast-util-from-html-isomorphic` offers a lighter, albeit less feature-rich, alternative.","language":"javascript","status":"active","version":"2.0.3","tags":["javascript","unist","hast","hast-util","util","utility","html","parse","tokenize","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install hast-util-from-html","imports":["import { fromHtml } from 'hast-util-from-html'","import type { ErrorCode } from 'hast-util-from-html'","import type { Options } from 'hast-util-from-html'"]},{"cmd":"yarn add hast-util-from-html","imports":[]},{"cmd":"pnpm add hast-util-from-html","imports":[]}],"homepage":"https://unifiedjs.com","github":"https://github.com/syntax-tree/hast-util-from-html","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/hast-util-from-html","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-from-html/compatibility"}}