Skip to content

zapo/unused-exports.ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unused-exports.ts

Shamefully stolen CLI wannabe version of https://gist.github.com/dsherret/0bae87310ce24866ae22425af80a9864 built on top of excellent typescript service api wrapper https://github.com/dsherret/ts-morph

All credit goes to @dsherret.

Usage

Basic

$ cd my-project/
$ npx unused-exports.ts # defaults with checking project sources files declared in ./tsconfig.json.

Advanced

  • custom tsconfig path (defaults to current directory tsconfig.json)
$ npx unused-exports.ts --config my-project/path/to/tsconfig.json
  • custom file patterns exclusion
$ npx unused-exports.ts 'path/to/include/**/*' '!path/to/include/not/**/*'

About

Simple CLI looking for unused ts exports

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published