Current collected state Current
Observed since 20 Oct, 21:21 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
8colors
chainable ansi 8 terminal colors
Color Terminal Console like magic (Chain-able)
npm install --save 8colors
const c = require('8colors')
var title ='WARNING'
//straight up
console.log(c.green('color me green'))
console.log(c.red(title))
//chaining
console.log (c.b('color me blue').m(' and I am Magenta').bm(' I am bright Magenta').end())
//background color
console.log(c.R().w(title).end())
console.log(c.R().w(title).by(' You are using and awesome library!').end())
| method(string) | TEXT COLOR |
|---|---|
| black(string) | Black |
| red(string) | Red |
| green(string) | Green |
| yellow(string) | Yellow |
| blue(string) | Blue |
| magenta(string) | Magenta |
| cyan(string) | Cyan |
| white(string) | White |
| Method (string) | Foreground Color |
|---|---|
| k(string) | Black |
| r(string) | red |
| g(string) | Green |
| b(string) | Blue |
| y(string) | Yellow |
| m(string) | Magenta |
| c(string) | Cyan |
| w(string) | White |
| Method(string) | Foreground Bright Color (Hi intensity) |
|---|---|
| bk(string) | Bright Black |
| br(string) | Bright Red |
| bg(string) | Bright Green |
| bb(string) | Bright Blue |
| by(string) | Bright Yellow |
| bm(string) | Bright Magenta |
| bc(string) | Bright Cyan |
| bw(string) | Bright White |
| Method(string) | Background Bright Color (Standard) |
|---|---|
| K(string) | Black |
| R(string) | Red |
| G(string) | Green |
| B(string) | Blue |
| Y(string) | Yellow |
| M(string) | Magenta |
| C(string) | Cyan |
| W(string) | White |
| Method(string) | Background Bright Color (Hi intensity) |
|---|---|
| BK(string) | Bright Black |
| BR(string) | Bright Red |
| BG(string) | Bright Green |
| BB(string) | Bright Blue |
| BY(string) | Bright Yellow |
| BM(string) | Bright Magenta |
| BC(string) | Bright Cyan |
| BW(string) | Bright White |
| method | Function |
|---|---|
| end() | denotes end of the chain and output result |
| V(string) | inverse foreground and background color (not tested on all terminal) |
| _(string) | Underline (not tested on all terminal) |
| I(string) | make the text color intense (not tested on all terminal) |
| blk | make the text slow blink (not tested on all terminal) |
| rblink | make the text rapid blink (not tested on all terminal) |
MIT © 2018 John Martin R. Disuanco
Download counts and popularity will appear here as the collector receives them.
Declarations describe requirements; they are not a resolved dependency graph.
Source distribution
{
"shasum": "d16c837f0f3ff77a9b7a83dfa3cc7559de034e76",
"tarball": "https://registry.npmjs.org/8colors/-/8colors-1.0.2.tgz",
"fileCount": 5,
"integrity": "sha512-cQWwvNmOLLDYM3pOSIcNDNCDRrB0qK6ocCRgjCfYdWSsF9xrxBAak1bh4D1kkpSwyOhQaTg6V6MLtnTCpd4gdA==",
"signatures": [
{
"sig": "MEUCIHAunVMF7aQqpZr8gV3zXbdbWYwJy2it9T4YnKVocKtZAiEA51IvhbcllXaBQ2oT3L3fpWZex5u4MnUxKwyR2KGXmkI=",
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
}
],
"unpackedSize": 14129
}Observed since 20 Oct, 21:21 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:499e59d23e758cbe3986f019dd9decd567006ce4a50b4e6dc0ff2605c04730b7