Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

project-structure-tree

greenluck1833MIT1.7.0

Prints a project folder structure in a tree format.

project-structure-tree, project structure tree, folder structure tree, directory structure tree, tree command, tree command line, tree cli, cli tool, command line tool

readme

📁 Project Structure Tree

project-structure-tree is a simple CLI tool that prints a visual tree representation of a directory structure.

Installation

npm install -g project-structure-tree

This will make the CLI commands project-structure-tree and pst available globally.

Usage

project-structure-tree [target_directory]

or simply:

pst [target_directory]

If no directory is provided, it defaults to the current working directory.

Example

pst .
my-project/
├── index.js
├── package.json
└── src/
    ├── components/
    └── utils/

🎯 Features

  • Tree-style display of folders and files
  • Ignores .gitignore, .git, and node_modules
  • Color-coded output:
    • Cyan for directories
    • Yellow for files