
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
A Python toolkit for generating directory trees. Treeline helps developers understand codebases through ASCII tree representations.
pip install treeline
treeline
treeline /path/to/project
treeline --code
treeline --code --depth 2
treeline --include "*.py"
treeline --exclude "node_modules"
treeline --all
treeline --no-size
treeline --file-count
treeline --output tree.txt
from treeline import tree, TreeRenderer
# eg1
tree("./my_project", show_code_structure=True)
# eg2
renderer = TreeRenderer(
show_code_structure=True,
max_depth=3,
show_size=True,
output_file="structure.txt"
)
renderer.render("./my_project")
Flag | Description |
---|---|
directory | Directory to analyze |
--code | Show code structure (classes, functions, components) |
--depth N | Limit tree depth to N levels |
--no-size | Hide size |
--all | Show all files |
--include PATTERN | Include files matching pattern |
--exclude PATTERN | Exclude files matching pattern |
-o FILE, --output FILE | Save output |
--file-count | Show file and directory counts |
--extensions | Show file extension |
Oha
FAQs
Enhanced tree command with code structure analysis
We found that treeline 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.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.