1.0.5 • Published 2 years ago
tree-viz-client v1.0.5
tree-viz-cli
A CLI program that can communicate with the tree-viz application using IPC.
The application accepts a URL as input along with an optional depth argument and builds a tree using these values. The tree is constructed of URLs where the user inputted value is the root and the children are all the links found on the page. This same mechanism is continously used until the desired depth of the tree has been reached, once that desired depth has been reached. The tree is flattened and sent to the main tree-viz application via UNIX domain sockets. The flattened tree consists of 2 collections, a list of all nodes and a list of the edges that connect the nodes.
Development Setup
Requirements
- node
- typescript
Run
Using npm
npm run build && npm run start
Using node
npm run build && node ./bin/client.js
Using ts-node
ts-node src/client.ts
Usage
Example
- Once installed the app can be ran using
tree-viz
e.g.tree-viz -h