jrieken / ts-unused Goto Github PK
View Code? Open in Web Editor NEWTool to find unused symbols in TypeScript project
License: MIT License
Tool to find unused symbols in TypeScript project
License: MIT License
Hi there! I just happened to be Googling for "Bloaty McBloatface" today (random vanity Google) and came across your project. I don't know if you knew, but I released a tool under this name about a year ago: http://blog.reverberate.org/2016/11/07/introducing-bloaty-mcbloatface.html
I don't mean to bother you if this is just something you're playing around with. But if you mean to release this as a tool to the wider world, the name conflict would probably be confusing.
This works great, but I've got like 300 of them and it's slow to remove them one by one :)
This project is a neat idea so I wanted to give it a try, but couldn't get it working:
$ node ../ts-unused/index.js -p tsconfig.json
fs.js:910
return binding.readdir(pathModule._makeLong(path), options.encoding);
^
Error: ENOENT: no such file or directory, scandir '/Users/brad/projects/node_modules/@types'
at Object.fs.readdirSync (fs.js:910:18)
at Object.getDirectories (/Users/brad/projects/ts-unused/node_modules/typescript/lib/typescript.js:4310:38)
at Object.getDirectories (/Users/brad/projects/ts-unused/node_modules/typescript/lib/typescript.js:71497:61)
at Object.getDirectories (/Users/brad/projects/ts-unused/index.js:88:27)
at Object.getDirectories (/Users/brad/projects/ts-unused/node_modules/typescript/lib/typescript.js:95420:55)
at Object.getAutomaticTypeDirectiveNames (/Users/brad/projects/ts-unused/node_modules/typescript/lib/typescript.js:22757:52)
at Object.createProgram (/Users/brad/projects/ts-unused/node_modules/typescript/lib/typescript.js:71812:37)
at synchronizeHostData (/Users/brad/projects/ts-unused/node_modules/typescript/lib/typescript.js:95438:26)
at Object.getProgram (/Users/brad/projects/ts-unused/node_modules/typescript/lib/typescript.js:95512:13)
at Object.<anonymous> (/Users/brad/projects/ts-unused/index.js:174:28)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.