import-count
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

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 command

Commands:
  most-common [options] <dir>     print each unique import found in <dir> along
                                  with its number of occurrences, sorted by most
                                  frequently occurring
  fewest-imports [options] <dir>  print each file in <dir> 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.

Package Sidebar

Install

npm i import-count

Weekly Downloads

7

Version

0.3.0

License

MIT

Unpacked Size

37.6 kB

Total Files

38

Last publish

Collaborators

  • jimmycuadra