AST-based transpiler wrapper for Node.js, version 1.2.0 (last release unknown, appears stable but rarely updated). It provides a simple way to define node handlers that transform AST nodes into strings. Unlike full-featured compiler toolkits like Babel, it is focused on lightweight, minimal transpilation without dependencies. Supports overrides per transpile call.
npm install transpilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a basic arithmetic transpiler from AST spec and transpiles an expression.
Update calls to pass null as second argument if no data is needed: transpile(ast, null, options).
Inside handler, use the local 'transpile' function to compile child nodes, not the instance method.
Always pass the node to original: original(node).
Use a different library if you need async; this one is synchronous only.
Use const transpiler = require('transpiler').create(spec); or destructure create.Ensure AST has the required fields (e.g., left, right).
Add a handler for that node type in the spec or in options overrides.
Check AST for cycles or ensure base cases in handlers.
No dependency data recorded yet.