node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »



Dependency Status devDependency Status Build Status: Linux Build Status: Windows npm version Downloads

A CLI tool to check whether exported things in a module is used by other modules.


npm i no-unused-export -g


  • check whether exported variable, function, type, class, interface in a module is used by other modules
  • check whether public members of class are used outside of the class
  • check whether less or scss variables are used
  • check whether template use non-public members for angular
  • check whether key exist for v-for and trackBy exists for *ngFor


no-unused-export "src/*.ts"

exclude source files

no-unused-export "src/*.ts" --exclude "src/*.d.ts"

--exclude is repeatable

exclude exports

 * @public
export const foo = 1;