A TypeScript-like language transpiler targeting C++, JavaScript, and VM bytecode. Version 0.0.2 is the current stable release with an experimental development cadence. It offers a familiar TypeScript syntax for classes, type annotations, and templates, but transpiles to idiomatic C++ with optional runtime support, or JavaScript or abstract VM bytecode. Key differentiators include cross-language output from a single source, integrated C++ compile-and-run, and a format/lint tool. Note: Very early-stage, with limited ecosystem and documentation.
npm install doofNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows both simple transpile and multi-file project transpilation with different targets.
Explicitly pass {target: 'js'} when you want JavaScript output.Pin to exact version in package.json: "doof": "0.0.2".
Copy doof_runtime.cpp and doof_runtime.h to your project and compile them with your generated code.
Use -t js or --target js; do not omit the flag.
Use 'doof' package only for the transpiler and manually copy runtime files from node_modules/doof/.
Change 'import transpile from "doof"' to 'import { transpile } from "doof"'.Use target: 'js' (not 'javascript').
Use doof's built-in types: int, float, string, bool, array, map.