package
```bash npm install -g js-code-stats # or --save ```
npm install js-code-statsGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
npm install -g js-code-stats # or --saveJS Code Stats search your codebase and notify you of,
js-code-stats ./src/**/*.jsFile test/invalid-import/b.js attempted to import invalid imports: b
File test/invalid-import/a.js was never imported
File test/invalid-import/a.js defined unused exports: b
File test/invalid-import/b.js defined unused exports: defaultYou can specify to ignore unused exports exports from files using the ignore-unused-exports or -i option.
import jsCodeStats from 'js-code-stats';
jsCodeStats(files, {
ignoreUnusedExports = [],
parser = defaultParser,
parserOptions = defaultParserOptions,
resolveOptions = {},
}).then(({ unusedFiles, unusedExports, invalidImports }) => {
...
});ignoreUnusedExports is the same as before.
Other options defined in get-es-imports-exports
Estimated unpacked size across 30 packages.
3.8 MB
Includes dependencies.
4 direct · 2 outdated
^1.1.3
6.0.1
^4.7.0
18.2.0
^4.11.2
4.18.1
^1.0.4
1.0.8