# asciitree

> Draw vertical ASCII tree

Latest version **1.0.2** (published 2015-10-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install asciitree
pnpm add asciitree
yarn add asciitree
bun add asciitree
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2015-10-14 |
| First published | 2015-06-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 40 |
| Author | Anton Medvedev |
| Maintainers | medv |
| Keywords | ascii, tree, cli |

## Links

- npm: https://www.npmjs.com/package/asciitree
- Repository: https://github.com/elfet/asciitree
- Homepage: https://github.com/elfet/asciitree#readme
- Issues: https://github.com/elfet/asciitree/issues
- npm.io page: https://npm.io/package/asciitree

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2015-10-14
- 1.0.1 — 2015-10-14
- 1.0.0 — 2015-06-17

## README

# Draw ASCII tree

```
npm install asciitree
```

## Usage

```js
var draw_tree = require('./asciitree');

var tree = ['root', 'child 1', ['child 2', 'node']];

console.log(draw_tree(tree));

```

Result:

```
      root___
     /       \
  child 1  child 2
              |
            node
```

## Examples

```
        1___
       /    \
      2      3
     / \    / \
    4   5  6   7
   / \        / \
  8   9      10 11
```

```
      SELECT_________________
     /            \          \
    .___         FROM       JOIN
   /    \          |       /    \
  a  city_name  people  address ON
                                 |
                                 =___________
                                /            \
                               .____          .
                              /     \        / \
                              p  address_id  a  id
```

```
     div_______________________________________________________________________________
    /   \                      \    \                      \    \                      \
  text  div_________________  text  div_________________  text  div_________________  text
       /   \    \     \     \      /   \    \     \     \      /   \    \     \     \
     text   i  text  span  text  text   i  text  span  text  text   i  text  span  text
                       |                           |                           |
                     text                        text                        text
```

---
_Source: https://npm.io/package/asciitree · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
