ast-transpiler is a versatile source-to-source transpiler that converts code between JavaScript, TypeScript, Python, and PHP by operating on abstract syntax trees. Version 0.0.85, under active development, it provides a unified AST representation and supports transpilation of modern JavaScript (ESM/CJS) to multiple target languages. Key differentiators: single-pass transpilation, TypeScript-first with full type definitions, and extensible transpilation rules. Ideal for multi-language codebases and tooling that requires cross-language code generation.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
The package is ESM-only since v0.0.80; CommonJS require() is not supported.
parseSync is a named export, not a default export.
TranspilerConfig is a TypeScript type and should be imported with `import type` to avoid runtime errors.
Transpiles a TypeScript function to Python using the transpile API with target language options.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.