filesearch-package
v1.0.4
Published
CLI utility for recursively search in the file system
Downloads
2
Readme
CLI file search utility
Installation:
- npm install filesearch-package — a command that will install the npm package from the npm repository
Parameters(order is not strict):
- --DIR (required) - base lookup directory
- --TYPE (optional) - [D|F] D - directory, F - file
- --PATTERN (optional) - regular expression to test file/directory name
- --MIN-SIZE (optional) - minimum file size [B|K|M|G], should be skipped for directories
- --MAX-SIZE (optional) - maximum file size [B|K|M|G], should be skipped for directories (B - bytes, K - kilobytes, M - megabytes, G = gigabytes)
Usage examples:
- index.js --DIR="/Users/Files" --PATTERN=\.png
- index.js --DIR="/Users/Files" --TYPE=D
- index.js --DIR="/Users/Files" --PATTERN=\.js --TYPE=F --MIN-SIZE=4K