Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

folder-snapshot

Latest version: v1.0.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: whataakash
3 Versions

Scan summary

folder-snapshot was last scanned on 23 Nov 2026 at version 1.0.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions, all published on 23 Nov 2026.
  • Findings: No rules fired in version 1.0.0.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 1.0.0

Findings

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.

README

The publisher’s own README, as collected from the registry.

📁 Folder Snapshot

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.

✨ Features

  • Recursive Scanning: Automatically scans nested directories.
  • Clean Tree Output: Generates readable directory structures.
  • Smart Filtering: Automatically ignores unnecessary directories like node_modules, .git, and dist.
  • Custom Ignore Patterns: Exclude files and folders of your choice.
  • Depth Control: Limit how deep the scanner explores.
  • JSON Export: Generate structured JSON output.
  • Folder Statistics: Get counts of files, directories, and other entries.
  • Zero Dependencies: Built entirely with native Node.js modules.

📦 Installation

Install globally to access the command from anywhere:

npm install -g folder-snapshot

Alternatively, use it without a global installation:

npx folder-snapshot

🚀 Getting Started

Step 1: Open your project

Navigate to the directory you want to scan:

cd path/to/your-project
Step 2: Run Folder Snapshot
folder-snapshot

That's it! Your project's directory structure will be displayed in the terminal.

💻 Usage

1. Scan the current directory
folder-snapshot
2. Scan a specific directory
folder-snapshot ./src
3. Limit directory depth

Useful when working with large projects.

folder-snapshot . --depth 2
4. Ignore specific files or folders
folder-snapshot . --ignore node_modules,dist,build
5. Generate JSON output
folder-snapshot . --json
6. Display folder statistics
folder-snapshot . --stats
7. Display help
folder-snapshot --help

📸 Example Output

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

⚙️ Default Ignored Entries

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.

🔌 Programmatic Usage

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));
Available API
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
Scanner Options
Option Type Default Description
ignore string[] [] Additional ignored patterns
maxDepth number Infinity Maximum directory depth

🛠️ Requirements

  • Node.js 18 or later
  • npm

No additional dependencies are required.

🧪 Development

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 .

🗺️ Roadmap

Potential features planned for future releases:

  • [ ] Save snapshots directly to .txt or .md files.
  • [ ] Calculate file and directory sizes.
  • [ ] Support .foldersnapshotignore.
  • [ ] Watch mode for automatic snapshot updates.
  • [ ] Copy snapshots directly to clipboard.
  • [ ] Markdown-formatted output.

🤝 Contributing

Contributions, suggestions, and bug reports are welcome!

  1. Fork the repository.
  2. Create a feature branch.
  3. Make your changes.
  4. Run the test suite.
  5. Submit a pull request.

📄 License

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.

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm folder-snapshot

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229