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

tree-noter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tree-noter

A command-line tool that formats tree command output with aligned or decorated comments, making directory structure documentation more readable

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

tree-noter

A command-line tool to format tree command output with aligned comments.

Installation

npm install -g tree-noter

Basic Usage (Aligned Style)

tree-noter [file] [options]

input.txt:

.
├── bin # Executable scripts
│   └── www # App entry point and server setup
├── public # Static assets
│   ├── images # Image files
│   ├── javascripts # Frontend JS
│   └── stylesheets # CSS files
│       └── style.css # Default stylesheet
├── routes # Route definitions
│   ├── index.js # Root path handler
│   └── users.js # /users route handler
├── views # Pug templates
│   ├── error.pug # Error page template
│   ├── index.pug # Home page template
│   └── layout.pug # Base layout template
├── app.js # App config and route setup
└── package.json # Project metadata and dependencies

$ tree-noter input.txt
.
├── bin                       Executable scripts
│   └── www                   App entry point and server setup
├── public                    Static assets
│   ├── images                Image files
│   ├── javascripts           Frontend JS
│   └── stylesheets           CSS files
│       └── style.css         Default stylesheet
├── routes                    Route definitions
│   ├── index.js              Root path handler
│   └── users.js              /users route handler
├── views                     Pug templates
│   ├── error.pug             Error page template
│   ├── index.pug             Home page template
│   └── layout.pug            Base layout template
├── app.js                    App config and route setup
└── package.json              Project metadata and dependencies


$ tree-noter -d input.txt
.
├── bin ---------------------------------------------- Executable scripts
│   └── www ---------------------------- App entry point and server setup
├── public ------------------------------------------------ Static assets
│   ├── images ---------------------------------------------- Image files
│   ├── javascripts ----------------------------------------- Frontend JS
│   └── stylesheets ------------------------------------------- CSS files
│       └── style.css -------------------------------- Default stylesheet
├── routes -------------------------------------------- Route definitions
│   ├── index.js -------------------------------------- Root path handler
│   └── users.js ----------------------------------- /users route handler
├── views ------------------------------------------------- Pug templates
│   ├── error.pug ----------------------------------- Error page template
│   ├── index.pug ------------------------------------ Home page template
│   └── layout.pug --------------------------------- Base layout template
├── app.js ----------------------------------- App config and route setup
└── package.json ---------------------- Project metadata and dependencies


$ tree-noter -d -s '👻'
.
├── bin 👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻 Executable scripts
│   └── www 👻👻👻👻👻👻👻👻👻👻👻👻👻👻 App entry point and server setup
├── public 👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻 Static assets
│   ├── images 👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻 Image files
│   ├── javascripts 👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻� Frontend JS
│   └── stylesheets 👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻� CSS files
│       └── style.css 👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻 Default stylesheet
├── routes 👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻 Route definitions
│   ├── index.js 👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻 Root path handler
│   └── users.js 👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻� /users route handler
├── views 👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻� Pug templates
│   ├── error.pug 👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻� Error page template
│   ├── index.pug 👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻 Home page template
│   └── layout.pug 👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻� Base layout template
├── app.js 👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻� App config and route setup
└── package.json 👻👻👻👻👻👻👻👻👻👻👻 Project metadata and dependencies

More Options

  • -o, --output <file>: Output file (uses stdout if not specified)
  • -d, --decorator [separator]: Use decorator style with optional separator (default: -----)
  • -g, --gap <width>: Gap between tree and comments (default: 30)
  • -c, --comment-marker <marker>: Comment marker to look for (default: #)
  • -w, --wrap: Enable comment wrapping for long comments
  • -m, --max-width <width>: Maximum width for output (auto-detects terminal width if not specified)
  • -i, --indent <spaces>: Spaces to indent wrapped comment lines (default: 2)

Keywords

tree

FAQs

Package last updated on 16 Apr 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