{"library":"xastscript","type":"library","category":null,"description":"xastscript is a utility library providing a hyperscript-like interface for programmatically creating xast (XML Abstract Syntax Tree) nodes. Similar to React's `createElement` or `hastscript` for HTML, it simplifies the creation of XML syntax trees by allowing nested function calls instead of verbose object literals. The current stable version is 4.0.0, which requires Node.js 16 or later and is exclusively ESM. It's part of the unified ecosystem and is primarily used when generating XML structures within code. Unlike `unist-builder` which handles generic unist nodes, `xastscript` is specifically tailored for XML elements, providing convenience for defining attributes and children in a more declarative way. Its release cadence typically involves minor and patch updates every few months, with major versions occurring less frequently, driven by breaking changes or significant feature additions.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript","unist","xast","xast-util","util","utility","xml","dsl","extensible","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install xastscript","imports":["import { x } from 'xastscript'","import type { Attributes } from 'xastscript'","import type { Result } from 'xastscript'"]},{"cmd":"yarn add xastscript","imports":[]},{"cmd":"pnpm add xastscript","imports":[]}],"homepage":null,"github":"https://github.com/syntax-tree/xastscript","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/xastscript","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/xastscript/compatibility"}}