Helps you understand your project's dependency usage by counting the number of imports.
To install dependency-import-counter globally, use the following command:
$ npm install -g dependency-import-counter
You can specify the directory to be analyzed. If no directory is specified, the default directory is ./src.
$ dependency-import-counter ./src
@mdx-js/react: 0
sanitize-filename: 2
@react-hook/merged-ref: 3
semver: 7
react-i18next: 616
You can also specify multiple directories:
$ dependency-import-counter ./src1 ./src2 ./src3
The results will be merged and displayed in the console.
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
MIT © 2023 ichiwa