{"library":"estree-util-to-js","type":"library","category":null,"description":"estree-util-to-js is a focused utility designed to transform an ESTree (and ESast) syntax tree into a serialized JavaScript string. Its primary function is to convert in-memory syntax representations back into executable code, often after parsing and transformation within an AST processing pipeline. The current stable version is 2.0.0, which mandates Node.js 16 or higher and functions exclusively as an ESM-only package. While there isn't a fixed release cadence, updates typically occur as needed for features, bug fixes, or to align with evolving JavaScript standards, with major versions reserved for significant breaking changes like environment requirements or API shifts. This package is particularly valuable for projects within the unified ecosystem (unist, vfile) and integrates seamlessly with parsing tools like Acorn. It differentiates itself by providing a robust, extensible mechanism for code generation, including optional source map support and custom handlers for various AST nodes, offering a complementary utility to `esast-util-from-js` which performs the inverse operation.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","unist","estree","estree-util","esast","esast-util","util","utility","js","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install estree-util-to-js","imports":["import { toJs } from 'estree-util-to-js'","import { jsx } from 'estree-util-to-js'","import type { Map } from 'estree-util-to-js'"]},{"cmd":"yarn add estree-util-to-js","imports":[]},{"cmd":"pnpm add estree-util-to-js","imports":[]}],"homepage":null,"github":"https://github.com/syntax-tree/estree-util-to-js","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/estree-util-to-js","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/estree-util-to-js/compatibility"}}