Gathering detailed insights and metrics for eight-colors
Gathering detailed insights and metrics for eight-colors
Gathering detailed insights and metrics for eight-colors
Gathering detailed insights and metrics for eight-colors
npm install eight-colors
Typescript
Module System
Node Version
NPM Version
JavaScript (75%)
HTML (25%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
32 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Feb 26, 2025
Latest Version
1.3.1
Package Id
eight-colors@1.3.1
Unpacked Size
10.66 kB
Size
3.98 kB
File Count
7
NPM Version
10.8.2
Node Version
20.17.0
Published on
Sep 21, 2024
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
3
Eight colors for the console
npm i eight-colors
black
, red
, green
, yellow
, blue
, magenta
, cyan
, white
NO_COLOR
FORCE_COLOR
and flags --no-color
--color
1const EC = require("eight-colors");
2
3// text color
4console.log(EC.red('red string'));
5
6// background color
7console.log(EC.bg.red('red background'));
8
9// bright color
10console.log(EC.br.red('bright red string'));
11
12// bright background color
13console.log(EC.br.bg.red('bright red background'));
14
15// style
16console.log(EC.italic('italic text'));
17console.log(EC.underline('underline text'));
18console.log(EC.green(EC.underline('green underline text')));
19
20// remove color
21const redString = EC.red('red string');
22console.log(redString);
23const string = EC.remove(redString);
24console.assert(string === 'red string');
25
26// log color
27const res = EC.logRed('string1', 'string2');
28console.assert(EC.remove(res) === 'string1 string2');
29
30EC.logGreen('log green');
31EC.logRed('log red');
32EC.logCyan('log cyan');
33EC.logBlack('log black');
34EC.logWhite('log white');
35
36EC.log('log 2 arguments', '2');
37EC.logGreen('logGreen 2 arguments', '2');
38EC.logMagenta('logMagenta 3 arguments', '2', '3');
39
40// disabled color
41EC.disabled = true;
42EC.logRed('disabled = true log default');
43EC.disabled = false;
44EC.logRed('disabled = false log red');
45
1EC.black(str)
2EC.red(str)
3EC.green(str)
4EC.yellow(str)
5EC.blue(str)
6EC.magenta(str)
7EC.cyan(str)
8EC.white(str)
9
10EC.bg.black(str)
11EC.bg.red(str)
12EC.bg.green(str)
13EC.bg.yellow(str)
14EC.bg.blue(str)
15EC.bg.magenta(str)
16EC.bg.cyan(str)
17EC.bg.white(str)
18
19EC.br.black(str)
20EC.br.red(str)
21EC.br.green(str)
22EC.br.yellow(str)
23EC.br.blue(str)
24EC.br.magenta(str)
25EC.br.cyan(str)
26EC.br.white(str)
27
28EC.br.bg.black(str)
29EC.br.bg.red(str)
30EC.br.bg.green(str)
31EC.br.bg.yellow(str)
32EC.br.bg.blue(str)
33EC.br.bg.magenta(str)
34EC.br.bg.cyan(str)
35EC.br.bg.white(str)
36
37EC.reset(str)
38EC.bold(str)
39EC.faint(str)
40EC.italic(str)
41EC.underline(str)
42EC.inverse(str)
43EC.hidden(str)
44EC.strike(str)
45
46EC.remove(str)
47
48EC.log(str)
49EC.logBlack(str)
50EC.logRed(str)
51EC.logGreen(str)
52EC.logYellow(str)
53EC.logBlue(str)
54EC.logMagenta(str)
55EC.logCyan(str)
56EC.logWhite(str)
57
58EC.disabled = true|false
Usage is the same as above, and provides an additional UMD bundle (1.35 KB)
1<script src="path-to/eight-colors/dist/eight-colors.js"></script> 2<script> 3 const EC = window['eight-colors']; 4 console.log(EC.red('red string')); 5</script>
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More