npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, πŸ‘‹, I’m Ryan HefnerΒ  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you πŸ™

Β© 2024 – Pkg Stats / Ryan Hefner

tree-emoji-cli

v1.0.2

Published

List contents of directories in tree-like format with emojis πŸŒ³πŸ“πŸ“„

Downloads

76

Readme

Tree Emoji CLI

List contents of directories in tree-like 🌳 format with Emojis πŸ“πŸ“„πŸ–ΌοΈ

Tree-emoji-cli is a recursive directory listing program that produces a depth indented listing of files. With no arguments, tree lists the files in the current directory. When directory arguments are given, tree lists all the files and/or directories found in the given directories each in turn with emojis. Upon completion of listing all files/directories found, tree returns the total number of files and/or directories listed.

Example

Command:

tree -l 2 -o output.txt

Result:

D:\Sandoche\00 - Projects\Producthunt-floating-prompt
β”œβ”€β”€ πŸ“ lib
|  β”œβ”€β”€ πŸ“„ producthunt-floating-prompt.js
|  └── πŸ“„ producthunt-floating-prompt.min.js
β”œβ”€β”€ πŸ“„ LICENSE
β”œβ”€β”€ πŸ–ΌοΈ logo.gif
β”œβ”€β”€ πŸ“„ package-lock.json
β”œβ”€β”€ πŸ“„ package.json
β”œβ”€β”€ πŸ“„ README.md
β”œβ”€β”€ πŸ“ src
|  β”œβ”€β”€ πŸ“„ floatingPrompt.js
|  └── πŸ“„ index.js
β”œβ”€β”€ πŸ“ test
|  β”œβ”€β”€ πŸ“„ index.html
|  β”œβ”€β”€ πŸ“„ index.spec.js
|  └── πŸ“„ mocha.opts
β”œβ”€β”€ πŸ“„ webpack.config.js
└── πŸ“„ yarn.lock

directory: 636 file: 14 

Install

npm install -g tree-emoji-cli

Usage

use the command tree or treee (to avoid confliction with system command)

NOTE: use treee instead of tree on windows system.

tree/treee

Use --help to list help info.

tree --help

Specify the level of path (how deep to scan).

use -l levelNumber to specify the path level.

tree -l 2

Output result to a file

use -o outputFilePath to specify the output file.

tree -l 2 -o out.txt

Show directory only

use -d to show directories only.

tree -l 2 -o out.txt -d

Other arguments

see Options.

FOR WINDOWS USERS

you should just use the treee command as tree has been already taken by windows system.

treee -l 2 -o out.txt -d

Options

  • --help: outputs a verbose usage listing.
  • --version: outputs the version of tree-emoji-cli.
  • --debug: show debug info.
  • --fullpath: prints the full path prefix for each file.
  • --ignore: ignores directory or file you specify - accepts arrays as comma-delimited strings: 'node_modules/, .git/, .gitignore'
  • --link: follows symbolic links if they point to directories, as if they were directories. Symbolic links that will result in recursion are avoided when detected.
  • --noreport: omits printing of the file and directory report at the end of the tree listing and omits printing the tree on console.
  • -a: all files are printed. By default tree does not print hidden files (those beginning with a dot '.'). In no event does tree print the file system constructs '.' (current directory) and '..' (previous directory).
  • -d: list directories only.
  • -f: append a '/' for directories, a '=' for socket files and a '|' for FIFOs.
  • -i: makes tree not print the indentation lines, useful when used in conjunction with the -f option.
  • -l: max display depth of the directory tree.
  • -o: send output to filename.

Credits

This library has been forked from https://github.com/MrRaindrop/tree-cli

⭐️ Show your support

Please ⭐️ this repository if this project helped you!

patreon.png

🍺 Buy me a beer

If you like this project, feel free to donate:

  • PayPal: https://www.paypal.me/kanbanote
  • Bitcoin: 19JiNZ1LkMaz57tewqJaTg2hQWH4RgW4Yp
  • Ethereum: 0xded81fa4624e05339924355fe3504ba9587d5419
  • Monero: 43jqzMquW2q989UKSrB2YbeffhmJhbYb2Yxu289bv7pLRh4xVgMKj5yTd52iL6x1dvCYs9ERg5biHYxMjGkpSTs6S2jMyJn
  • Motive: MOTIV-25T5-SD65-V7LJ-BBWRD (Get Motive Now: https://motive.network)