Gathering detailed insights and metrics for @bobyzgirlllnpm/doloremque-necessitatibus-magni
Gathering detailed insights and metrics for @bobyzgirlllnpm/doloremque-necessitatibus-magni
Gathering detailed insights and metrics for @bobyzgirlllnpm/doloremque-necessitatibus-magni
Gathering detailed insights and metrics for @bobyzgirlllnpm/doloremque-necessitatibus-magni
npm install @bobyzgirlllnpm/doloremque-necessitatibus-magni
Typescript
Module System
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
30
String.prototype
1npm install @bobyzgirlllnpm/doloremque-necessitatibus-magni
1const { cli, colors, styler } = require("@bobyzgirlllnpm/doloremque-necessitatibus-magni"); 2 3cli.println("Hello World"); 4 5cli.println(styler.color.red.background.green.italic.underline("Hello World"));
1const { cli, colors, styler } = require("@bobyzgirlllnpm/doloremque-necessitatibus-magni"); 2 3const println = cli.println; 4 5println("Hello World"); 6 7println(styler.background.blue.italic.underline("Hello World"));
1const { cli, colors, styler } = require("@bobyzgirlllnpm/doloremque-necessitatibus-magni"); 2 3const error = styler.color.red; 4const warning = styler.color.orange; 5 6cli.println(error("Error!")); 7cli.println(warning("Warning!!!"));
1const fs = require("node:fs"); 2const @bobyzgirlllnpm/doloremque-necessitatibus-magni = require("@bobyzgirlllnpm/doloremque-necessitatibus-magni"); 3 4const styler = @bobyzgirlllnpm/doloremque-necessitatibus-magni.styler; 5const renderer = @bobyzgirlllnpm/doloremque-necessitatibus-magni.renderer; 6const animations = @bobyzgirlllnpm/doloremque-necessitatibus-magni.animations; 7 8const sourceFile = "example.txt"; 9const destFile = "example_copy.txt"; 10 11const progress_bar = renderer.progress(animations.animation1); 12const progress_text = renderer.progress({ frames: ["Copying"] }); 13const progress_path_text = renderer.progress({ frames: [`${sourceFile} => ${destFile}`] }); 14 15const FAIL = styler.color.rgb([24, 24, 24]).background.red.bold(" FAIL "); 16const DONE = styler.color.rgb([24, 24, 24]).background.green.bold(" DONE "); 17 18fs.stat(sourceFile, function (err, stat) { 19 const filesize = stat.size; 20 let bytesCopied = 0; 21 22 const readStream = fs.createReadStream(sourceFile) 23 24 readStream.on('data', function (buffer) { 25 bytesCopied += buffer.length; 26 let porcentage = ((bytesCopied / filesize) * 100).toFixed(2); 27 progress_bar.set(porcentage); 28 }); 29 30 readStream.on('end', function () { 31 progress_bar.end(DONE); 32 progress_text.end(styler.color.rgb([86, 185, 127])("Copyed")); 33 progress_path_text.end(styler.color.rgb([86, 185, 127])(`${sourceFile} => ${destFile}`)); 34 }); 35 36 readStream.on('error', function () { 37 progress_bar.end(FAIL); 38 progress_text.end(styler.color.red("Error")); 39 progress_path_text.end(styler.color.red(`${sourceFile} => ${destFile}`)); 40 }); 41 42 readStream.pipe(fs.createWriteStream(destFile)); 43}); 44 45renderer.render([ 46 [styler.bold("Copying following files:")], 47 [""], 48 [" ", progress_bar, progress_path_text, progress_text, animations.simpleDots], 49]);
1const @bobyzgirlllnpm/doloremque-necessitatibus-magni = require("@bobyzgirlllnpm/doloremque-necessitatibus-magni"); 2 3const println = @bobyzgirlllnpm/doloremque-necessitatibus-magni.cli.println; 4 5const type_string = "Hello World!!"; 6const type_number = 12345; 7const type_arrow_function = (bg) => { hello(); }; 8function type_function() { hello(); }; 9const type_object = { 10 hello: type_arrow_function, 11 hello2: { 12 fw: "wfqf", 13 } 14} 15const type_symbol = Symbol(type_string); 16const type_null = null; 17const type_undefined = void 0; 18const type_bool = false; 19const type_class = class Example {}; 20 21 22println(type_string); 23console.log(type_string); 24 25println(type_number); 26console.log(type_number); 27 28println(type_arrow_function); 29console.log(type_arrow_function); 30 31println(type_function); 32console.log(type_function); 33 34println(type_object); 35console.log(type_object); 36 37println(type_symbol); 38console.log(type_symbol); 39 40println(type_null); 41console.log(type_null); 42 43println(type_undefined); 44console.log(type_undefined); 45 46println(type_bool); 47console.log(type_bool); 48 49println(type_class); 50console.log(type_class); 51
<style>[.<style>...](string)
Example: @bobyzgirlllnpm/doloremque-necessitatibus-magni.styler.underline('Hello');
Example: @bobyzgirlllnpm/doloremque-necessitatibus-magni.styler.italic('Hello');
<color>[.<style>...](string)
Example: @bobyzgirlllnpm/doloremque-necessitatibus-magni.styler.color.red.underline('Hello');
<background>[.<style>...](string)
Example: @bobyzgirlllnpm/doloremque-necessitatibus-magni.styler.background.red.underline('Hello');
<rgb | hex>[.<style>...](string)
Example: @bobyzgirlllnpm/doloremque-necessitatibus-magni.styler.color.hex('#ffffff')('Hello');
Example: @bobyzgirlllnpm/doloremque-necessitatibus-magni.styler.color.hex('#ffffff').bold('Hello');
Example: @bobyzgirlllnpm/doloremque-necessitatibus-magni.styler.color.rgb([255, 255, 0])('Hello');
Example: @bobyzgirlllnpm/doloremque-necessitatibus-magni.styler.color.rgb([255, 255, 0]).bold('Hello');
<rgb | hex>[.<style>...](string)
Example: @bobyzgirlllnpm/doloremque-necessitatibus-magni.styler.background.hex('#ffffff')('Hello');
Example: @bobyzgirlllnpm/doloremque-necessitatibus-magni.styler.background.hex('#ffffff').underline('Hello');
Example: @bobyzgirlllnpm/doloremque-necessitatibus-magni.styler.background.rgb([255, 255, 0])('Hello');
Example: @bobyzgirlllnpm/doloremque-necessitatibus-magni.styler.background.rgb([255, 255, 0]).underline('Hello');
reset
- Reset the current style.bold
- Make the text bold.dim
- Make the text have lower opacity.italic
- Make the text italic. (Not widely supported)underline
- Put a horizontal line below the text. (Not widely supported)doubleline
- Put a double horizontal line below the text. (Not widely supported)inverse
- Invert background and foreground colors.hidden
- Print the text but make it invisible.crossedout
- Puts a horizontal line through the center of the text. (Not widely supported)color
- Set text colorbackground
- Set background colorblack
red
green
yellow
blue
magenta
cyan
white
grey
orange
There is currently no browser version, but we are working on it
If you're on Windows, do yourself a favor and use Windows Terminal instead of cmd.exe
.
No vulnerabilities found.
No security vulnerabilities found.