T3 is a minimal superset of TypeScript (v0.0.17) that provides a cleaner, simpler syntax while preserving TypeScript's type system. It removes required semicolons, parentheses around control flow statements, and other syntactic clutter. The package includes a CLI transpiler (t3) that converts .t3 files to .ts. Key differentiators: aims to reduce boilerplate more than TypeScript itself, focuses on readability, and uses PEG.js for grammar definition. Release cadence is irregular; this version should be considered experimental.
npm install t3-langNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic installation, creating a .t3 file, and transpiling it to .ts using the CLI.
Pin to exact version when used in production.
Use 'npx t3-lang' instead of 't3' to avoid command not found.
Follow T3 syntax: no semicolons, parentheses optional for control flow.
Use '--outDir' or rely on default (same directory).
Split files or avoid deeply nested syntax.
Run 'npm install peggy' in your project, or install t3-lang globally.
Install globally with 'npm install -g t3-lang' or use 'npx t3-lang'.
Ensure all blocks (if, for, etc.) have bodies and are properly closed.