# protree

> protree a cli tool to automate building the project tree structure

Latest version **1.0.1** (published 2022-11-19) · MIT license · 0 weekly downloads

## Install

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

Provides the command `protree`.

## 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.1 |
| Published | 2022-11-19 |
| First published | 2022-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ahmed-sudani |
| Maintainers | ahmedsudani |

## Links

- npm: https://www.npmjs.com/package/protree
- Repository: https://github.com/ahmed-sudani/protree
- Homepage: https://github.com/ahmed-sudani/protree#readme
- Issues: https://github.com/ahmed-sudani/protree/issues
- npm.io page: https://npm.io/package/protree

## Recent versions

- 1.0.1 (latest) — 2022-11-19
- 1.0.0 — 2022-11-19

## README

<h1 align="center">protree</h1> 
<p align="center"> a cli tool to automate building the project tree structure<p>

## Why

- more automation.
- less writing.
- handle forgetting update the documentation :-)

## Install

```
npm i protree
```

## Form

```
protree path out
```

## Usage

- ### with markdown

  Add `<!-- protree -->` comment to the .md file in the place you want the tree to be in.

  You will add the `comment` only one time and the tree will be updated in that place in case you update your structure in the future.

  In case you didn't add the `comment` the tree will be appended in end of the file.

  The tree will be added to the markdown file in a `code block` formate.

- ### with console
  `Omit` the `out` argument.
- ### with others
  Use the command as it is. But `note` the tree `will not` be updated and it will always be appended.

## Ignore Files

You can ignore files you don't want it to be included in the tree structure by creating a `.ptignore` file and add all the ignored files in it.

## Project Structure

<!-- protree -->

```
. 
├── .ptignore
├── LICENSE
├── README.md
├── index.js
└── util
    ├── genTree.js
    ├── loadIgnore.js
    ├── toMarkdownCode.js
    └── writeTree.js
```

## License

This project is [MIT](https://github.com/ahmed-sudani/protree/blob/master/LICENSE) licensed.

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