{"library":"astring","type":"library","category":null,"description":"Astring is a lightweight and high-performance JavaScript code generator that transforms an ESTree-compliant Abstract Syntax Tree (AST) back into JavaScript source code. Currently at version 1.9.0, the library sees frequent minor and patch releases, indicating active development and responsiveness to new language features and bug fixes. Its key differentiators include exceptional speed (outperforming alternatives like Babel, Escodegen, and Prettier by significant margins), a tiny footprint (approx. 4 KB gzipped), and zero runtime dependencies. Astring supports JavaScript up to ES2024 and stage 3 proposals, can be extended with custom AST node handlers, and integrates with source map and comment generation tools. It's compatible with ASTs produced by parsers such as Acorn and Meriyah, and runs in Node.js, browsers, and Deno.","language":"javascript","status":"active","version":"1.9.0","tags":["javascript","ast","codegen","code generator","estree","astravel","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install astring","imports":["import { generate } from 'astring';","import { GENERATOR } from 'astring';","// In HTML:\n<script src=\"astring.min.js\"></script>\n// In JS:\nvar generate = astring.generate;"]},{"cmd":"yarn add astring","imports":[]},{"cmd":"pnpm add astring","imports":[]}],"homepage":null,"github":"https://github.com/davidbonnet/astring","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/astring","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/astring/compatibility"}}