| Crates.io | tsef |
| lib.rs | tsef |
| version | 0.1.0 |
| created_at | 2025-08-03 18:49:20.266011+00 |
| updated_at | 2025-08-03 19:03:04.235029+00 |
| description | A CLI tool that filters TypeScript compiler output to show errors only from specified files and directories. |
| homepage | |
| repository | https://github.com/iostreamer-X/tsef |
| max_upload_size | |
| id | 1779981 |
| size | 24,507 |
A CLI tool that filters TypeScript compiler output to show errors only from specified files and directories.
https://github.com/user-attachments/assets/075fad2b-8c14-4ae0-bfeb-fe993f4d3324
tsf parses the output from tsc and filters errors based on file path patterns. This is particularly useful in large codebases where you want to focus on errors from specific modules or directories while ignoring errors from dependencies or unrelated code.
The tool supports both ANSI-colored output (tsc --pretty) and plain text output, automatically detecting the format and using appropriate parsing strategies.
cargo install tsef
Build from source using Cargo:
cargo build --release
The binary will be available at target/release/tsef.
Filter TypeScript errors to show only errors from specific files:
tsc --pretty *.ts | tsef -i src/components/Header.tsx -i src/utils/helpers.ts
Use glob patterns to filter by directory or file patterns:
tsc --pretty *.ts | tsef -i "src/features/**/*" -i "src/components/**/*"
Include the TypeScript compiler summary even when filtering:
tsc --pretty *.ts | tsef -i "src/**/*" --show-full
Works with plain tsc output as well:
tsc *.ts | tsef -i "src/**/*"