How to use clui.Menu:
GitHub: DrGunbot/Lazy-git
4 5 6 7 8 9 10 11 12 13 14 15
const clui = require('clui'); //mke a function to clear the screen const clear = require('clear'); const Spinner = clui.Spinner; const Gauge = clui.Gauge; const Menu = clui.Menu; // Replace TOKEN with your GitHub personal access token const token = 'Add your Token here';
How to use clui.Clear:
3 4 5 6 7 8 9 10 11 12
const Line = CLI.Line; class Dashboard { update() { CLI.Clear(); let header = undefined; for (let nodeID in this.infos) { if (nodeID === 'attacker' || nodeID === 'system') { continue;
How to use clui.LineBuffer:
5 6 7 8 9 10 11 12 13 14
const chalk = require('chalk'); const clear = require('clear'); const clui = require('clui'); const clc = require('cli-color'); const Line = clui.Line; const LineBuffer = clui.LineBuffer; let cardcat = false; // Interactive program
How to use clui.Progress:
GitHub: ModClean/modclean
132 133 134 135 136 137 138 139 140 141
} initEvents() { var inst = this.modclean; let progressBar = new clui.Progress(40), spinner = new clui.Spinner('Loading...'), showProgress = true; if(!process.stdout.isTTY || program.interactive || !program.progress || program.verbose) showProgress = false;
15
372
7
See more examples
How to use clui.Gauge:
GitHub: lukepearson/passwords
50 51 52 53 54 55 56 57 58 59 60 61
const clc = require('cli-color'); const CLI = require('clui'); const Line = CLI.Line; const LineBuffer = CLI.LineBuffer; const Gauge = CLI.Gauge; let max_count = 7671364; const c1 = 20; const c2 = 10;
How to use clui.Line:
4 5 6 7 8 9 10 11 12
const figlet = require('figlet'); const chalk = require('chalk'); const clear = require('clear'); const clui = require('clui'); const clc = require('cli-color'); const Line = clui.Line; const LineBuffer = clui.LineBuffer; let cardcat = false;
How to use clui.Spinner:
GitHub: ModClean/modclean
133 134 135 136 137 138 139 140 141
initEvents() { var inst = this.modclean; let progressBar = new clui.Progress(40), spinner = new clui.Spinner('Loading...'), showProgress = true; if(!process.stdout.isTTY || program.interactive || !program.progress || program.verbose) showProgress = false;
15
372
7
See more examples