Scan your whole stack
From OX Research Newsroom
Are you using folder-snapshot?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.0.0
folder-snapshot was last scanned on 23 Nov 2026 at version 1.0.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.0.1 | 23 Nov 2026 | Not shown |
| 1.0.0 | 23 Nov 2026 | No rules fired |
| 0.0.0-stage | 23 Nov 2026 | Not shown |
Findings for v1.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.0.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A lightweight Node.js CLI tool to generate clean directory tree snapshots of any project.
Folder Snapshot helps developers visualize, understand, and document project structures without manually navigating through folders.
Whether you're exploring an unfamiliar codebase, documenting a project, or sharing your folder structure with an AI coding assistant, Folder Snapshot makes it simple.
node_modules, .git, and dist.Install globally to access the command from anywhere:
npm install -g folder-snapshot
Alternatively, use it without a global installation:
npx folder-snapshot
Navigate to the directory you want to scan:
cd path/to/your-project
folder-snapshot
That's it! Your project's directory structure will be displayed in the terminal.
folder-snapshot
folder-snapshot ./src
Useful when working with large projects.
folder-snapshot . --depth 2
folder-snapshot . --ignore node_modules,dist,build
folder-snapshot . --json
folder-snapshot . --stats
folder-snapshot --help
For a project with the following structure:
my-project/
├── src/
│ ├── components/
│ │ └── Header.jsx
│ ├── App.jsx
│ └── main.jsx
├── public/
│ └── favicon.ico
├── package.json
└── README.md
Folder Snapshot generates:
my-project/
├── public/
│ └── favicon.ico
├── src/
│ ├── components/
│ │ └── Header.jsx
│ ├── App.jsx
│ └── main.jsx
├── package.json
└── README.md
To keep the output clean, Folder Snapshot automatically ignores:
| Entry | Reason |
|---|---|
node_modules |
Installed dependencies |
.git |
Git metadata |
.DS_Store |
macOS system file |
dist |
Build output |
build |
Build output |
coverage |
Test coverage reports |
.next |
Next.js build directory |
You can provide additional ignore patterns using --ignore.
Folder Snapshot can also be integrated into your own Node.js applications.
Install it locally:
npm install folder-snapshot
Import the functions:
import {
snapshot,
formatTree,
getStatistics
} from "folder-snapshot";
// Scan a directory
const tree = snapshot("./");
// Generate readable output
console.log(formatTree(tree));
// Get folder statistics
console.log(getStatistics(tree));
| Function | Description |
|---|---|
snapshot(path, options) |
Scans a directory and returns its tree |
scanDirectory(path, options) |
Direct access to the scanner |
formatTree(tree, options) |
Converts the tree into readable text |
getStatistics(tree) |
Calculates folder statistics |
formatStatistics(stats) |
Formats statistics for display |
isIgnored(name, path, patterns) |
Checks ignore patterns |
| Option | Type | Default | Description |
|---|---|---|---|
ignore |
string[] |
[] |
Additional ignored patterns |
maxDepth |
number |
Infinity |
Maximum directory depth |
No additional dependencies are required.
Clone the repository:
git clone https://github.com/whataakash/folder-snapshot.git
Navigate into the project:
cd folder-snapshot
Run the test suite:
npm test
Test the CLI locally:
npm link
folder-snapshot .
Potential features planned for future releases:
.txt or .md files..foldersnapshotignore.Contributions, suggestions, and bug reports are welcome!
This project is licensed under the MIT License.
Built with ❤️ using Node.js.
If you find Folder Snapshot useful, consider giving the repository a ⭐ on GitHub.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.