0.0.6 • Published 9 months ago

@yuheiy/import-scanner-cli v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@yuheiy/import-scanner-cli

Scan files for import declarations.

Install

npm install @yuheiy/import-scanner-cli

Usage

$ import-scanner --help

  Usage
    $ import-scanner [path...]

  Options
    --ignore          Ignore specific file paths
    --module          The module name targeted by the imports to be retrieved
    --module-regexp   The regular expression for the module name targeted by the imports to be retrieved
    --json            Output scanned imports as a JSON

  Examples
    $ import-scanner **/*.{js,ts,jsx,tsx}
    $ import-scanner **/*.{js,ts,jsx,tsx} --ignore="**/dist/**" --ignore="**/node_modules/**"
    $ import-scanner **/*.{js,ts,jsx,tsx} --module=my-module
    $ import-scanner **/*.{js,ts,jsx,tsx} --module-regexp="^my-module(/.+)?$"
    $ import-scanner **/*.{js,ts,jsx,tsx} --json

Related

0.0.3

10 months ago

0.0.5

9 months ago

0.0.4

10 months ago

0.0.6

9 months ago

0.0.2

10 months ago

0.0.1

10 months ago