bloomberg/ts-blank-space

A small, fast, pure JavaScript type-stripper that uses the official TypeScript parser.

Owned by Bloomberg

View on GitHub ↗Jump to charts ↓

bloomberg/ts-blank-space has 900+ stars and 20+ forks on GitHub, is written in TypeScript, and was last pushed on Sep 5, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 1 hour ago
Added to GitGenius on October 12th, 2026
Created on August 19th, 2024
Open Issues & Pull Requests: 13 (+0)
GitHub issues: Enabled
Number of forks: 21
Total Stargazers: 937 (+0)
Total Subscribers: 12 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 4.2 hours
Mean response time: 25.7 days
90th percentile: 6.9 days
Tracked items: 16

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 3
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 452 days
Stale 30+ days: 2
Stale 90+ days: 2

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (4)
  • bug (3)
  • documentation (3)
  • working as intended (1)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

ts-blank-space is a type-stripper that removes TypeScript type annotations and converts TypeScript source code to JavaScript using the official TypeScript parser.

The tool solves the problem of stripping type syntax from TypeScript files while preserving executable JavaScript. It works by parsing TypeScript source code with the official TypeScript compiler API and then removing type annotations while keeping the original JavaScript slices intact, rather than regenerating code. This approach avoids the overhead of code generation and allows reuse of existing source string segments.

The tool suits projects that need fast, lightweight type stripping without external dependencies or native compilation. It works well for build pipelines, development tooling, and runtime environments where a pure JavaScript solution is preferred. The tool includes a Node.js loader for transparently processing imported TypeScript files and supports both CommonJS and ESM. The README notes that not all TypeScript syntax is supported and that no down-leveling of JavaScript occurs, so the output preserves the original JavaScript semantics.

Development activity shows consistent maintenance with regular updates addressing issues and improvements. The project maintains a small, focused codebase of around eight hundred lines with a single dependency on TypeScript itself, making it straightforward to understand and maintain. The team provides clear documentation including a playground for testing, performance benchmarks, and detailed guidance on unsupported syntax and configuration recommendations.