User-friendly glob matching CLI
See globby
npm install --global globby-cli
$ globby "images/*"
images/cat.png
images/dog.jpg
$ globby "images/*" -i "**/*.jpg"
images/cat.png
images/dog.jpg
$ globby "images/**/*" "static/**/*"
images/cat.png
images/dog.jpg
static/cow.gif
static/au/kangaroo.svg
$ globby "images/*" --json
[
"images/cat.png",
"images/dog.jpg"
]
See globby --help
for a full list of flags or see the globby docs.