Transpiler module for Firescript, version 0.10.0. Provides two transpiler classes: JavascriptTranspiler to convert Firescript AST to JavaScript source code, and FirescriptTranspiler to output Firescript source. Low-level tool intended for building compilers or tooling around Firescript. Release cadence is unknown.
npm install firescript-transpilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use both transpiler classes to convert a Firescript AST to JavaScript and Firescript source.
Use a single default import and destructure: import TranspilerModule from 'firescript-transpiler'; const { JavascriptTranspiler, FirescriptTranspiler } = TranspilerModule;First parse the source with a Firescript parser (e.g., firescript-parser) to get an AST, then pass it to transpile().
const transpiler = new JavascriptTranspiler(); then transpiler.transpile(ast);
Use CommonJS require: const { JavascriptTranspiler } = require('firescript-transpiler');No dependency data recorded yet.