formatree-cli
Format a tree like structure to a depth indented string
Last updated 3 years ago by a1rpun .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install formatree-cli 
SYNC missed versions from official npm registry.

formatree-cli

Format a folder structure to a depth indented string

Install

$ npm i -g formatree-cli

Usage

$ formatree --help

  Usage
    $ formatree [--limit=<number>] [--spacing=<number>] [--values] [--theme=<string>]
  Options
    -v, --version     Show this help
    -l, --limit       Limit the tree at a specific branch depth.
    -s, --spacing     Add some extra lines between the tree branches.
    -a, --values      Show the values of the siblings
    -t, --theme       Customize the output of the tree
                      themes: ascii, clean, stripes, arrows
    -h, --header      The first line of the tree
    -f, --footer      The last line of the tree
    -p, --parent      Append a string after a parent branch
        --sibling
        --lastSibling
        --indent
        --lastIndent
  Examples
    $ formatree
    .
    └── foo
        └── bar

    $ formatree --limit=1 --values
    .
    └── foo (/foo)

Related

License

MIT © A1rPun

Current Tags

  • 1.0.4                                ...           latest (3 years ago)

5 Versions

  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 3
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |