A port of the useful tree directory listing program in JavaScript.
narra [..options] <..directories>
Option | Description |
---|---|
--help | Show help message. |
-a, --all | Include dot-prefixed files in listing. |
-l, --follow | Follow symbolic links. |
-d, --depth | Takes a number N greater than 0; descend N directories only. |
--dirs-only | Display directories only. |
-f | Display the offset path of each entry from top directory. |
-x | Stay on the current filesystem only. |
-g | Takes a glob pattern and filter files by it. Uses picomatch syntax and matching. Can be specified multiple times for different globs. |
-o, --output | Takes a filename and sends output to the file (truncating if it exists). |