scandog
v1.0.2
Published
scandog
Downloads
3
Readme
✨Welcome to Scandog🐕
Scandog checks if there exist files with the specified suffix for all files matching globs.
Usage
You can call scandog from the npx command without installing it.
npx scandog <suffix> --patterns <patterns...> <other options>
--patterns
is required. You can use a short alias.
npx scandog <suffix> -p <patterns...> <other options>
Basic
npx scandog .spec -p '**/*.{ts,tsx}'
npx scandog .stories -p '**/*.tsx'
Ignore config files with negated glob patterns
You can use negated glob patterns.
npx scandog .spec -p '**/*.{ts,tsx}' '!*.config.ts'
Ignore patterns from .gitignore
You can use "-g" or "--gitignore" option to apply ignore patterns from ".gitignore" file. This is a useful option to ignore the "dist" or "build" directories.
npx scandog .spec -p '**/*.{js.ts}' -g
Options
-p
, --patterns
Glob patterns. Scandog uses "globby" as glob engine. Please visit globby#readme for how to write glob.
-g
, --gitignore
This option applies ignore patterns from ".gitignore" file. The node_modules directory is always ignored even if you don't use this option.