Shrimpit is a small CLI analysis tool for checking unused JavaScript, JSX & Vue templates ES6 exports in your project.
JavaScript Nix
Latest commit bae280a Jan 10, 2017 @yamafaktory 0.7.0

README.md

Shrimpit 🍀 Build Status npm version Standard - JavaScript Style Guide

Shrimpit is a small CLI analysis tool for checking unused JavaScript, JSX & Vue templates ES6 exports in your project.

Usage

npm i -g shrimpit

shrimpit path/to/your/files /another/path

Adding the --tree flag will output the complete files tree with all the imports and the exports per file:

shrimpit --tree path/to/your/files

Please note that default unnamed exports are rendered as paths:

shrimpit test --tree
 Shrimpit!

 > Files tree

{ test:
   { a:
      { 'a1.js': { exports: [ 'a11', 'a12' ], imports: [ 'test/a' ] },
        'a2.js': { exports: [ 'a2' ], imports: [ 'test' ] },
        'a4.js': { exports: [ 'a4', 'test/a' ], imports: [ 'a11', 'a12' ] } },
     b:
      { 'b1.js': { exports: [ 'b1', 'test/b' ], imports: [] },
        'b2.js': { exports: [ 'test/b' ], imports: [] } } } }

 > Unused exports

[ 'a2', 'a4', 'b1', 'test/b' ]

Flow & Vue

Shrimpit supports Flow annotations and Vue templates out of the box!

Linting

The code quality is checked by the JavaScript Standard Style.

License

Released under the MIT license by Davy Duperron.