https://github.com/poyea/vis-tree
Command-line generator for some data structures
https://github.com/poyea/vis-tree
cli command-line command-line-tool data-structures datastructures ts typescript
Last synced: 19 days ago
JSON representation
Command-line generator for some data structures
- Host: GitHub
- URL: https://github.com/poyea/vis-tree
- Owner: poyea
- License: mit
- Created: 2020-05-11T19:17:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-13T14:01:31.000Z (over 4 years ago)
- Last Synced: 2025-03-29T00:06:30.475Z (25 days ago)
- Topics: cli, command-line, command-line-tool, data-structures, datastructures, ts, typescript
- Language: TypeScript
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#
vis-tree
Command line tool for generation of data structures.

```
|\ /|\__ __/( ____ \ \__ __/( ____ )( ____ \( ____ \
| ) ( | ) ( | ( \/ ) ( | ( )|| ( \/| ( \/
| | | | | | | (_____ _____ | | | (____)|| (__ | (__
( ( ) ) | | (_____ )(_____) | | | __)| __) | __)
\ \_/ / | | ) | | | | (\ ( | ( | (
\ / ___) (___/\____) | | | | ) \ \__| (____/\| (____/\
\_/ \_______/\_______) )_( |/ \__/(_______/(_______/
```## Current options
```
Usage: vis-tree [options]A toolbox for you to visualize your data structures.
Options:
-V, --version output the version number
-a, --array array's toolbox
-t, --tree tree's toolbox
-s, --sorted return an increasingly sorted array
-rs, --rsorted return a decreasingly sorted array
-l, --low set value of minimum element (default: "-1e9")
-h, --high set value of maximum element (default: "1e9")
-N set length/size of output (default: "10")
--help display help for command
```## Installation
```
npm install -g vis-tree
```## Build from source
First, you need to clone the project. Then,
```
npm install
npm run create
```## Run tests
We use mocha and chai.
```
npm test
```## Work in progress
* A LOT## If you like this, please
* Star
* Fork
* Contribute## License
This repository is licensed under the [MIT](https://opensource.org/licenses/MIT) License. See also [LICENSE](LICENSE) for details.