{"library":"unist-builder","type":"library","category":null,"description":"unist-builder is a utility package providing a hyperscript-like interface for programmatically constructing unist (Universal Syntax Tree) nodes and trees. It simplifies the creation of Abstract Syntax Trees (ASTs) by replacing repetitive manual object creation with a concise functional API, similar to `createElement` in React or `h` in Vue. The current stable version is 4.0.0, which targets Node.js 16 and later. The package generally follows a deliberate release cadence, with major versions often introducing breaking changes related to Node.js compatibility or module system shifts (e.g., transitioning to ESM). It differentiates itself by offering a fluent API specifically for unist, contrasting with related tools like `hastscript` or `xastscript` which serve HTML and XML ASTs respectively.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript","unist","unist-util","util","utility","tree","ast","build","builder","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install unist-builder","imports":["import { u } from 'unist-builder'","import type { ChildrenOrValue } from 'unist-builder'","import type { Props } from 'unist-builder'"]},{"cmd":"yarn add unist-builder","imports":[]},{"cmd":"pnpm add unist-builder","imports":[]}],"homepage":null,"github":"https://github.com/syntax-tree/unist-builder","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/unist-builder","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/unist-builder/compatibility"}}