New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

file-structure-analyzer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-structure-analyzer

A CLI tool for analyzing file and directory structure.

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

File Structure Analyzer

A simple CLI tool to analyze and visualize the file and directory structure of any folder.
Supports custom depth, ignore lists, and displays different icons for different file types.

Features

  • Recursively scans directories and files
  • Displays an ASCII tree with icons for file types
  • Supports depth limit and ignore patterns
  • Outputs summary statistics (total files, size, etc.)
  • Colorful output for better readability

Installation

npm install -g file-structure-analyzer

Usage

After installing globally from npm, you can use the fsa command directly:

fsa [directory] [options]

Or run locally:

node index.js [directory] [options]

Or make it executable:

chmod +x index.js
./index.js [directory] [options]

Options

  • [directory] : Directory path to scan (default is current directory)
  • -d, --depth <number> : Recursion depth limit (default: unlimited)
  • -i, --ignore <items...> : List of directories or files to ignore (default: node_modules, .git, .vscode, .idea, target)

Example

fsa ./src -d 2 -i node_modules dist

Output Example

📁 my-project (/path/to/my-project)
├── 📁 src
│   ├── 🟨 index.js (2.1 KB)
│   └── 📝 README.md (1.2 KB)
├── 📁 node_modules
└── 📄 package.json (0.8 KB)

--- Summary ---
Total Items Found: 5
Total Files Found: 3
Total Size: 4.1 KB

License

MIT

FAQs

Package last updated on 10 Oct 2025

Did you know?

Socket

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.

Install

Related posts