fs-match
v1.7.2
Published
A NodeJS package for finding folders, files & apps by Regular expression based on Asynchronous iteration of ES 9 & TypeScript
Downloads
166
Maintainers
Readme
FS match
A NodeJS package for finding folders, files & apps by Regular expression based on Asynchronous iteration of ES 9 & TypeScript.
Use in another module
Use in Command-line shell
Search files
# Search in current directory
fs-match -r full\.name\.pattern
# Search in a specific folder
fs-match root/path -r full\.name\.pattern
# Search first match in a specific folder
fs-match root/path -r full\.name\.pattern -c 1
Search apps
# Show in stdout
app-find chrome firefox
# Append result to an ini-like file
app-find chrome firefox -f .npmrc
# Append result to ".env" file in working directory (since npm@9 & [email protected])
app-find chrome firefox -c