
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Tree-Viewer is a Python tool for generating customizable visual representations of directory trees, ideal for developers who need to manage and navigate complex project structures. It offers a clear, structured view of directory contents, enhancing project organization and accessibility.
This project provides a customizable tree of your current directory or project. The tool allows you to get a complete structure of your project with options to include hidden directories and exclude specific files or directories.
pip install tree-viewer
then run:
tree-viewer
you will see your current directory tree in the console.
If you want to save the results of your current directory tree, run:
tree-viewer --output file_name.txt
It will generate the results in the current directory file_name.txt
.
The tree-viewer
tool now supports including hidden directories in the directory tree structure. Hidden directories are those whose names begin with a dot (.
, such as .git
or .config
). By default, hidden directories are excluded from the tree structure.
To include hidden directories in the tree structure, use the --hidden
flag:
tree-viewer --hidden
The tree-viewer
tool also allows you to exclude specific directories or files from the directory tree. This can be useful for omitting directories like node_modules
or files such as config.json
that you do not want to appear in the output.
To exclude specific directories or files, use the --excludes
option followed by the names of the directories or files:
tree-viewer --excludes .git node_modules config.json
project_directory/
📂 src/
│ 📂 main/
│ │ 📂 java/
│ │ │ 📂 com/
│ │ │ 📄 Main.java
│ │ 📂 resources/
│ │ │ 📂 config/
│ │ │ 📄 application.properties
│ │ 📂 webapp/
│ │ 📄 index.html
│ 📂 test/
│ │ 📂 java/
│ │ │ 📂 com/
│ │ │ 📄 MainTest.java
│ │ │ 📂 example/
│ │ │ 📄 MainTest.java
│ │ 📂 resources/
│ │ 📂 test_config/
│ │ 📄 test.properties
📂 docs/
│ 📄 documentation.md
📄 README.md
📄 LICENSE
Note: If you encounter any issues or have suggestions, please submit them here: https://github.com/wiliancirillo/tree-viewer.
Credits This project, tree-viewer, is based on and inspired by the Custom Tree project developed by dragon-devs. Our tool extends the original functionality by providing additional features such as the ability to exclude specific files and directories from the tree output. We are grateful to the original authors and contributors of Custom Tree for their pioneering work which served as a foundation for further development in this tool.
For more details about the original project, please visit their GitHub repository: https://github.com/dragon-devs/custom-tree.
FAQs
Tree-Viewer is a Python tool for generating customizable visual representations of directory trees, ideal for developers who need to manage and navigate complex project structures. It offers a clear, structured view of directory contents, enhancing project organization and accessibility.
We found that tree-viewer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.