Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A CLI tool that filters TypeScript compiler output to show errors only from specified files and directories.

License

iostreamer-X/tsef

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tsef

A CLI tool that filters TypeScript compiler output to show errors only from specified files and directories.

demo.mp4

Overview

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.

Installation

cargo install tsef

Build from source using Cargo:

cargo build --release

The binary will be available at target/release/tsef.

Usage

Basic Usage

Filter TypeScript errors to show only errors from specific files:

tsc --pretty *.ts | tsef -i src/components/Header.tsx -i src/utils/helpers.ts

With Glob Patterns

Use glob patterns to filter by directory or file patterns:

tsc --pretty *.ts | tsef -i "src/features/**/*" -i "src/components/**/*"

Show Complete Summary

Include the TypeScript compiler summary even when filtering:

tsc --pretty *.ts | tsef -i "src/**/*" --show-full

Without Pretty Output

Works with plain tsc output as well:

tsc *.ts | tsef -i "src/**/*"

About

A CLI tool that filters TypeScript compiler output to show errors only from specified files and directories.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages