Sagase
Searching files recursively.
Usage
Command Line
npm install -g sagase sagase path/to/search /pattern/ /exclude_pattern/ sagase -i path/to/search /pattern/ /exclude_pattern/ sagase -f path/to/search -p /pattern/ -x /exclude_pattern/ sagase --helpOptions: --folder, -f Path to search --pattern, -p A regexp or string
In Node.js
npm install --save sagase
const find = // `pattern` and `exclude` accept [Function]// in this case, `nameOnly` and `excludeNameOnly` will be ignored // Synchronous `find`const findSync = const files =
Available Options
-f
, --folder
: Path to search.
-p
, --pattern
: A regexp or string for matching file.
--name-only
: Only apply pattern
on filename.
-x
, --exclude
: A regexp or string for excluding file.
--exclude-nameonly
: Only apply exclude
on filename.
-i
, --ignore-case
: Should ignore case.
-r
, --recursive
: Search recursively.
License
Licensed under the MIT license.