ftst (v1.2.2) is a minimal TypeScript transpiler that removes type annotations from TypeScript files, leaving readable JavaScript where the output is line-by-line equivalent to the input. This eliminates the need for source maps during debugging. It supports only ES2019, ES2020, and ESNext script targets, and offers a command-line runner (node -r ftst filename.ts) as well as JS API functions transpileModule and transpile. Compared to tsc or other transpilers, ftst focuses solely on type stripping without full compilation, making it extremely fast and suitable for quick type removal tasks or debugging scenarios. It is dependency-free and works in Node.js environments.
npm install ftstNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates using transpileModule to strip types from a TypeScript interface and function, returning clean JavaScript.
Set compilerOptions.target to ScriptTarget.ES2019, ScriptTarget.ES2020, or ScriptTarget.ESNext.
Import from 'ftst/transpiler' for transpileModule, transpile, and enums.
Set remove to true to avoid commented types in output.
Test your code thoroughly; consider using full tsc for complex TypeScript features.
Ensure you import from 'ftst/transpiler' (not 'ftst/transpile' or 'ftst').
Use: import { transpileModule } from 'ftst/transpiler';Set target to one of: ScriptTarget.ES2019, ScriptTarget.ES2020, ScriptTarget.ESNext.
No dependency data recorded yet.