Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A Python CLI to generate a tree structured diagram for any directory!
Imagine this: you are on Discord and is request help from someone about a project you are working on. You want to show the structure of your project directory to the person. You can't just send a screenshot of the directory because it's too big and the person won't be able to see the whole structure. You can't just send a text file with the structure because it's too boring and the person won't be able to understand it easily. What do you do? You use gendia
!
Heres an example of a tree structured diagram generated by gendia
:
project
├── src
│ ├── main.py
│ ├── utils
│ │ ├── __init__.py
│ │ ├── helper.py
│ │ └── helper2.py
│ ├── tests
│ │ ├── __init__.py
│ │ ├── test_main.py
│ │ └── test_helper.py
│ └── README.md
├── LICENSE
└── .gitignore
Not just that, it is color coded! The directories are in blue, and different file types are in different colors. This makes it easier to understand the structure of the directory.
To add gendia
to your project, run:
pip install gendia
This should install gendia
to your project. You can now use it to generate tree structured diagrams for your directories.
To use gendia
, run:
gendia path/to/directory
This should generate a tree structured diagram for the directory you specified. You can also specify the output file by using the -o
flag:
gendia path/to/directory -o output.txt
This should generate a tree structured diagram for the directory you specified and save it to output.txt
.
FAQs
A Python CLI to generate a tree structured diagram for any directory
We found that gendia 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.