kots-searching
v1.0.7
Published
Home work Node JS file search
Downloads
1
Maintainers
Readme
Home work #7
Node JS
File search algorithm
--DIR
(required) base lookup directory
--TYPE
(optional) [D|F]
D - directory, F - file
--PATTERN
(options) regular expression to test file/directory name
--MIN-SIZE
(options) minimum file size [B|K|M|G]
, should be skipped for directories
--MAX-SIZE
(options) maximum file size [B|K|M|G]
, should be skipped for directories
(B - bytes, K - kilobytes, M - megabytes, G = gigabytes)
Parameters order is not strict!
Examples
--DIR="/Users/name/Downloads" --PATTERN=\.js
--DIR="/Users/name/Downloads" --TYPE=D
--PATTERN=\.mkv --TYPE=F --MIN-SIZE=4G --DIR="/Users/name/Downloads"
Install
[sudo] npm install -g kots-searching
Usage
Examples
searching --DIR="/Users/name/Downloads" --PATTERN=\.js