ts

ts-remove-unused – Remove unused code from your TypeScript project

Hacker News

ts-remove-unused – Remove unused code from your TypeScript project

ts-remove-unused is a command line tool for TypeScript projects that auto-fixes unused `export`s. It removes the export keyword from the declaration or the whole declaration based on its usage in the project. There are some similar tools but they are focused on "detecting" rather than "removing" so I've built one myself. I wanted a solution that's as minimal as possible; config files to specify the files in your project shouldn't be necessary because that info should be already configured in tsconfig.json. All you need to do is to specify your entrypoint file. Feedback is much appreciated!

Share card

Actual performance

141points
66comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: code · Missing: mac, agents, macos
63%63% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Hacker NewsMay not resonate with HN audience · Strong signals: io · Missing: https docs, excited, just released
40%40% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
40%40% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Indie HackersIH features products with proven revenue · Missing: supports, reddit linkedin, podcasting
38%38% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
31%31% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
13%13% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Re
Remove redundant synthesize directives from your Objective-C code40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Remove redundant synthesize directives from your Objective-C code

Hacker News2
Mi
Minclude, remove unneeded C/C++ include directives52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Minclude, remove unneeded C/C++ include directives

Hacker News3
Remove Anything
Remove Anything37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

BackgroundRemoval, AIObjectRemover, WatermarkRemover,

Indie Hackerscommitment-full-time
Fu
Fullstack Koa, React, Redux, Webpack, TypeScript project43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Fullstack Koa, React, Redux, Webpack, TypeScript project

Hacker News2
Ce
Cerialize – Typescript serialization by annotation39%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Cerialize – Typescript serialization by annotation

Hacker News1
Sc
Scala-ts – Scala to TypeScript compiler41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Scala-ts – Scala to TypeScript compiler

Hacker News66
Ha
Hapi with Typescript51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Hapi with Typescript

Hacker News2
JS
JSONSchema to TypeScript compiler51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

JSONSchema to TypeScript compiler

Hacker News72
Tr
Transpile Scala to TypeScript29%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Transpile Scala to TypeScript

Hacker News1
Du
DuoCode 1.0 bridges the gap between C# and TypeScript31%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

DuoCode 1.0 bridges the gap between C# and TypeScript

Hacker News7