Unist Tree Builder
JSON →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.
Traffic · last 30 days ↓100% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France