A recursive directory listing program that supports file-size reporting, and pattern matching. Inspired by the tree
UNIX command.
alder
should be installed globally using yarn
or npm
.
yarn global add @aweary/alder
Usage: alder [options] [target]
Options:
-h, --help output usage information
-V, --version output the version number
-s, --sizes Show file sizes in tree
-e, --exclude <s> Exclude files matching a pattern
-i, --include <s> Include only files that match a pattern
-d, --depth <n> Only render the tree to a specific depth
You can pass a string that will be parsed as a regular expression to --exclude
:
# excluding single directory
alder --exclude=.git
# excluding multiple directories
alder --exclude=".git|bower_components|node_modules"
You can pass a string that will be parsed as a regular expression to --include
:
# including single file pattern
alder --include=package
# including multiple files patterns
alder --include="package|webpack"