fsviz is a lightweight, dependency-free command-line tool built with Node.js for generating and displaying the directory structure of your current folder. It's designed to be simple and easy to use.
- add screenshot or a gif of it working in the README
- add tests!
- fancy option by default and change README and --help to make this clear
- -to-file / -o should take file arg
- add JSON and CSV output
- Ensure no special characters are in the output files
- wrap code in function and export instead of running directly. Add to README
- No External Dependencies: Built purely with Node.js built-in modules.
- Customizable Output: Choose between simple and fancy tree-like outputs.
- Pattern Ignoring: Ability to ignore files and directories based on a provided glob pattern.
You can install fsviz globally using npm by running the following command:
npm install -g fsviz
This allows you to use the fsviz
command from anywhere on your system.
After installation, you can use the fsviz
command in your terminal. Here are some ways to use this tool:
To display the directory structure of the current directory, simply type:
fsviz
For a more graphical tree-like structure, use the --fancy
option:
fsviz --fancy
To ignore files or directories that match a certain pattern, use the --ignore
option. For example, to ignore all node_modules directories, you can run:
fsviz --ignore="node_modules"
For more information on all available options, use the help command:
fsviz --help
Here is an example of what the fancy output might look like:
fsviz-project
├── node_modules
│ └── (contents ignored)
├── src
│ ├── index.js
│ └── utils.js
├── package.json
└── README.md
Contributions are welcome! Please feel free to submit a pull request or open an issue if you have feedback, requests, or bugs to report.
fsviz is MIT licensed.