
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
A command-line tool to visualize disk usage as a treemap-inspired ASCII mosaic. It scans a directory and produces a mosaic of uniformly sized, color-coded blocks based on file size and category. The visualization is designed to work on Linux and macOS.
pip install disk-canvas
Clone the repository, then run:
cd disk-canvas
pip install .
Basic usage:
python -m disk_canvas /path/to/directory
Full options:
python -m disk_canvas /path/to/directory [-t TOP] [-f] [-d DEPTH] [-D] [-U]
Options:
-t, --top
: Number of largest items per depth (default: 10)-f, --files
: Show only files (exclude directories)-d, --depth
: Maximum directory depth (default: 1)-D, --detail
: Display a detailed legend with file extensions-U, --unsort
: Use unsorted (treemap) canvas layout (default is sorted mosaic)Disk Usage Visualization for: /Users/bz/Developer/disk-canvas
Total size: 405.8K
Top 10 largest items (max depth: 1):
Size Type Depth Category Path
----------------------------------------------------------
405.8K [DIR] 0 DIR .
156.6K [DIR] 1 DIR .git
79.6K [DIR] 1 DIR tests
54.7K [DIR] 1 DIR disk_canvas
52.0K [FILE] 1 OTHER .coverage
27.9K [DIR] 1 DIR dist
13.8K [FILE] 1 DATA coverage.xml
5.6K [DIR] 1 DIR disk_canvas.egg-info
4.8K [FILE] 1 DOCUMENT README.md
2.8K [DIR] 1 DIR .pytest_cache
████████████████▒▒▒▒◆◆◆◆◆······················○○........................
███████████████▒▒▒▒▒◆◆◆◆◆······················○○........................
███████████████▒▒▒▒▒◆◆◆◆◆·····················○○○........................
███████████████▒▒▒▒▒◆◆◆◆◆·····················○○○........................
███████████████▒▒▒▒▒◆◆◆◆······················○○☰........................
███████████████▒▒▒▒▒◆◆◆◆······················○○.........................
Detailed Extension Legend:
CODE files: (55.3K)
█ .py (10 files, 55.3K)
DATA files: (17.6K)
▒ .xml (1 files, 13.8K)
▒ .toml (1 files, 1.8K)
▒ .yml (2 files, 1.5K)
▒ .yaml (1 files, 617.0B)
COMPRESSED files: (16.9K)
◆ .gz (1 files, 16.9K)
CACHE files: (78.9K)
· .pyc (10 files, 78.9K)
DOCUMENT files: (8.3K)
○ .md (4 files, 7.6K)
○ .txt (5 files, 690.0B)
CONFIG files: (734.0B)
☰ .gitignore (2 files, 551.0B)
☰ .flake8 (1 files, 183.0B)
OTHER files: (88.7K)
. .coverage (1 files, 52.0K)
. .sample (13 files, 23.0K)
. .whl (1 files, 11.0K)
. .pack (1 files, 1.5K)
. .idx (1 files, 1.1K)
. .tag (1 files, 191.0B)
The visualization uses different symbols for different file types:
█
- Code files▓
- Notebooks▒
- Data files◆
- Compressed files·
- Cache files◐
- Image files◢
- Video files◇
- Audio files○
- Documents☰
- Config files.
- Other filesIn simplified mode, similar categories share the same symbol for a cleaner view.
We welcome contributions! Please see our Contributing Guidelines for details.
For development setup and guidelines, please refer to the Contributing Guidelines.
pip install -e ".[dev]"
pytest
The project uses:
See CHANGELOG.md for a list of changes.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A command-line tool to visualize disk usage as a treemap-inspired ASCII mosaic
We found that disk-canvas 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.