Git Product home page Git Product logo

luoye-tree's Introduction

luoye-tree

一个为文件目录输出树形结构的命令行工具。

全局安装

npm install luoye-tree -g

使用

查看所有命令: ltree -h

D:\技术特性测试\mala-luoye\luoye-tree>ltree -h
Usage: luoye-tree [options]

一个为文件目录输出树形结构的命令行工具

Options:
  -v, --version            输出当前版本
  -d,--directory <string>  指定目录路径,输出树形结构
  -l,--level <number>      限制目录层级,输出树形结构
  -i,--ignore <string>     指定需要忽略的文件夹/文件,输出树形结构
  -h, --help               display help for command

指定当前目录 + 限定目录层级为2:ltree -d . -l 2

D:\技术特性测试\mala-luoye\luoye-tree>ltree -d . -l 2
luoye-tree
└── .git
    ├── COMMIT_EDITMSG
    ├── config
    ├── description
    ├── FETCH_HEAD
    ├── HEAD
    ├── hooks
    ├── index
    ├── info
    ├── logs
    ├── objects
    ├── ORIG_HEAD
    ├── packed-refs
    └── refs
└── .gitignore
└── .prettierrc.cjs
└── LICENSE
└── node_modules
    ├── .modules.yaml
    ├── .pnpm
    └── commander
└── package.json
└── pnpm-lock.yaml
└── README.md
└── src
    ├── actions
    ├── index.js
    └── utils

忽略文件或文件夹 .git、node_modules、pnpm-lock.yaml:ltree -d . -l 2 -i .git,node_modules,pnpm-lock.yaml

D:\技术特性测试\mala-luoye\luoye-tree>ltree -d . -l 2 -i .git,node_modules,pnpm-lock.yaml
luoye-tree
└── .gitignore
└── .prettierrc.cjs
└── LICENSE
└── package.json
└── README.md
└── src
    ├── actions
    ├── index.js
    └── utils

luoye-tree's People

Contributors

liliangcs avatar

Stargazers

rojer avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.