Update to v13 and add queue and completely change code

This commit is contained in:
a 2021-12-06 16:34:00 +01:00
parent dcef23d0ed
commit 55a38726a3
6706 changed files with 424137 additions and 61608 deletions

8
node_modules/cli-color/examples/art.js generated vendored Normal file
View file

@ -0,0 +1,8 @@
'use strict';
var clc = require('../');
var text = '.........\n' + '. Hello .\n' + '.........\n';
var style = { ".": clc.yellowBright("X") };
process.stdout.write(clc.art(text, style));

25
node_modules/cli-color/examples/basic.js generated vendored Normal file
View file

@ -0,0 +1,25 @@
'use strict';
var clc = require('../');
console.log('Output colored text:');
console.log(clc.red('Text in red'));
console.log('Styles can be mixed:');
console.log(clc.red.bgWhite.underline('Underlined red text on white background.'));
console.log('Styled text can be mixed with unstyled:');
console.log(clc.red('red') + ' plain ' + clc.blue('blue'));
console.log('Styled text can be nested:');
console.log(clc.red('red ' + clc.blue('blue') + ' red'));
console.log('Best way is to predefine needed stylings and then use it:');
var error = clc.red.bold;
var warn = clc.yellow;
var notice = clc.blue;
console.log(error('Error!'));
console.log(warn('Warning'));
console.log(notice('Notice'));

25
node_modules/cli-color/examples/erase.js generated vendored Normal file
View file

@ -0,0 +1,25 @@
'use strict';
var clc = require('../');
console.log('Erasing screen ..');
setTimeout(function () {
process.stdout.write(clc.erase.screen);
console.log('This a line of text that should not be cleared');
process.stdout.write('This line will be cleared but cursor will be here ->');
setTimeout(function () {
process.stdout.write(clc.erase.line);
process.stdout.write('\nMoving cursor backwards and deleting (from here): to the right');
setTimeout(function () {
process.stdout.write(clc.move(-13, 0));
process.stdout.write(clc.erase.lineRight);
setTimeout(function () {}, 2000);
}, 2000);
}, 2000);
}, 2000);

10
node_modules/cli-color/examples/styles.js generated vendored Normal file
View file

@ -0,0 +1,10 @@
'use strict';
var clc = require('../');
console.log(clc.bold('Bold text'));
console.log(clc.italic('Italic text'));
console.log(clc.underline('Underlined text'));
console.log(clc.blink('Blinking text (might not work for your font)'));
console.log(clc.inverse('Inverse text'));
console.log(clc.strike('Strikethrough text'));

15
node_modules/cli-color/examples/throbber.js generated vendored Normal file
View file

@ -0,0 +1,15 @@
'use strict';
var setupThrobber = require('../throbber');
var throbber = setupThrobber(function (str) {
process.stdout.write(str);
}, 200);
process.stdout.write('Throbbing for 3 seconds here -> ');
throbber.start();
setTimeout(function () {
console.log();
throbber.stop();
}, 3000);

6
node_modules/cli-color/examples/xterm.js generated vendored Normal file
View file

@ -0,0 +1,6 @@
'use strict';
var clc = require('../');
var msg = clc.xterm(202).bgXterm(236);
console.log(msg('Orange text on dark gray background'));