🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

ttj

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ttj

A command-line tool to convert TypeScript (`.ts`) and TSX (`.tsx`) files to JavaScript (`.js`) and JSX (`.jsx`) files.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

TypeScript to JavaScript Converter

A command-line tool to convert TypeScript (.ts) and TSX (.tsx) files to JavaScript (.js) and JSX (.jsx) files.

Features

  • Converts TypeScript/TSX files to JavaScript/JSX while preserving code structure
  • Supports both single file and directory conversion
  • Recursive directory processing
  • Skips node_modules and hidden directories
  • Dry-run mode to preview conversions
  • Verbose output option for debugging
  • Tracks and reports conversion success/failure statistics

Usage

Run the tool using Node.js:

npx ttj [options]

Options

  • -d, --dir <directory>: Specify directory to convert (defaults to current working directory)
  • -f, --file <file>: Convert a single file
  • -r, --dry-run: Preview files that would be converted without making changes
  • -v, --verbose: Show detailed output
  • -V, --version: Display version number
  • -h, --help: Display help information

Examples

Convert a single file:

npx ttj -f src/index.ts

Convert all files in a directory:

npx ttj -d src

Dry run to preview conversions:

npx ttj -d src --dry-run

Verbose output:

npx ttj -d src --verbose

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

typescript

FAQs

Package last updated on 09 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