Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

t3-lang

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

t3-lang

T3 brings a smoother, cleaner experience to JavaScript with TypeScript's power—minus the clutter.

latest
Source
npmnpm
Version
0.0.17
Version published
Maintainers
1
Created
Source

T3 Language

T3 is a minimal superset of TypeScript that makes JavaScript development cleaner and simpler.
It removes unnecessary clutter while preserving TypeScript's power.

✨ Features

  • No required semicolons
  • if, for, and similar statements without parentheses
  • Cleaner syntax with familiar JS/TS semantics
  • Simple CLI transpiler to convert .t3 files to .ts

📦 Installation

npm install -g t3-lang

Or use with npx:

npx t3-lang path/to/file.t3

If you have installed it globally, you can also use the t3 command directly.

npx t3 path/to/file.t3

🔧 Usage

Transpile a .t3 file to .ts:

t3 ./examples/test.t3 --outDir ./dist

If no --outDir is specified, output goes to the same directory with .ts extension.

📁 Project Structure

/src
  ├── grammar.pegjs      # Custom grammar rules
  ├── parser.ts          # Grammar parser using peggy
  ├── t3.ts              # CLI entry point
  └── transpiler.ts      # T3 → TS transpilation logic

📜 License

Apache License 2.0

Keywords

t3

FAQs

Package last updated on 18 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts