Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimmycuadra/import-count
A command line interface for analyzing import statements in JavaScript code.
https://github.com/jimmycuadra/import-count
cli esm esmodules import javascript jsx
Last synced: 3 months ago
JSON representation
A command line interface for analyzing import statements in JavaScript code.
- Host: GitHub
- URL: https://github.com/jimmycuadra/import-count
- Owner: jimmycuadra
- License: mit
- Created: 2022-01-31T10:03:58.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-10T18:44:00.000Z (over 1 year ago)
- Last Synced: 2024-09-27T19:40:59.383Z (3 months ago)
- Topics: cli, esm, esmodules, import, javascript, jsx
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/import-count
- Size: 25.4 KB
- Stars: 3
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# import-count
**import-count** is a command line interface for analyzing import statements in JavaScript code.
## Installation
With npm:
```
npm install import-count
```With yarn:
```
yarn global add import-count
```## Synopsis
```
Usage: import-count [options] [command]Options:
-V, --version output the version number
-h, --help display help for commandCommands:
most-common [options] print each unique import found in along
with its number of occurrences, sorted by most
frequently occurring
fewest-imports [options] print each file in with its number of
imports, sorted by fewest imports
help [command] display help for command
```## Legal
import-count is released under the MIT license. See `LICENSE` for details.