1.0.0 ā€¢ Published 11 months ago

contree v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

contree

File tree text generation utility

Usage

The GenerateTreeText function takes a title and tree. The title is a string, while the tree is an array containing either strings (entries) or another array (sub tree).

Example

In this example, the tree is titled "Test Tree"

GenerateTreeText("Test Tree", [
    "start",
    "a",
    ["b", "c", "d"],
    "e",
    "f",
    ["g", "h", "i", ["j", "k", "l"]],
    "end",
]);
šŸ—„ļø  Test Tree
ā”œā”€ā”€ start
ā”œā”€ā”€ a
ā”œā”€ā”€ šŸ“‚ b
ā”‚    ā”œā”€ā”€ c
ā”‚    ā””ā”€ā”€ d
ā”œā”€ā”€ e
ā”œā”€ā”€ f
ā”œā”€ā”€ šŸ“‚ g
ā”‚    ā”œā”€ā”€ h
ā”‚    ā”œā”€ā”€ i
ā”‚    ā””ā”€ā”€ šŸ“‚ j
ā”‚        ā”œā”€ā”€ k
ā”‚        ā””ā”€ā”€ l
ā””ā”€ā”€ end
1.0.0

11 months ago