trash-import

Scan for unused files

Usage no npm install needed!

<script type="module">
  import trashImport from 'https://cdn.skypack.dev/trash-import';
</script>

README

💩 Trash import or not

Setup

  • Npm
npm install -g trash-import
  • Yarn
yarn global add trash-import

Usage

Usage: trash-import [options] <directory>

  Look 👀 for unused import and remove 💩 the files if you want to.

  Options:

    -d, --delete             Delete unused import. BACKUP YOUR FILES FIRST
    -o, --output <pathname>  Save output to json file
    -s, --silent             Disable output
    -h, --help               output usage information