$ cd ~/
$ git clone https://github.com/ogty/unused-module-extractor
$ source ~/unused-module-extractor/setup.sh
$ unused [options] <directory-path>
-f, --ignore-files '<file-name> ...': exclude the files
-d, --ignore-dirs '<dir-name> ...': exclude the dirs
$ unused -f "index.svelte app.d.ts" ./src
$ unused -d "routes lib" ./src