{"library":"hast-util-from-html-isomorphic","type":"library","category":null,"description":"hast-util-from-html-isomorphic is a utility package for the hast ecosystem that efficiently converts HTML strings into a hast (HTML Abstract Syntax Tree) tree. Designed for isomorphic applications, it intelligently uses hast-util-from-dom in browser environments, leveraging native DOM parsing APIs for a significantly smaller bundle size, and falls back to hast-util-from-html in Node.js. This approach prioritizes minimal client-side footprint, making it ideal for web components, static site generators, or libraries that need to process HTML both server-side and client-side without a large parser overhead. A key characteristic is that it does not preserve positional information (line, column, offset) from the original HTML string, a deliberate trade-off for its performance and size benefits. The current stable version is 2.0.0, which updated its @types/hast dependency. This package is part of the syntax-tree unified ecosystem and generally sees updates as underlying dependencies or major features warrant, rather than on a strict time-based cadence.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","unist","hast","hast-util","util","utility","html","parse","dom","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install hast-util-from-html-isomorphic","imports":["import { fromHtmlIsomorphic } from 'hast-util-from-html-isomorphic'","import type { Options } from 'hast-util-from-html-isomorphic'","import type { Root } from 'hast'"]},{"cmd":"yarn add hast-util-from-html-isomorphic","imports":[]},{"cmd":"pnpm add hast-util-from-html-isomorphic","imports":[]}],"homepage":null,"github":"https://github.com/syntax-tree/hast-util-from-html-isomorphic","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/hast-util-from-html-isomorphic","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-isomorphic/compatibility"}}