TROLOLORS
Not the fastest terminal colors library. Don't even ask about size.
Why?
Don't even try to use it. But maybe you wan't say to your boss that you used RUST for your next projects.
Features
- 142x slower and 52x bigger than nanocolors
- Cat unfriendly
- NO additional colors
- Non tree-shakable, uses wasm-pack each time you import it
- Not maintained (at least for another week)
- Have 2 dependencies, build-time dependencies
Benchmark
At least we tried
chalk 24,616,741 ops/sec
cli-color 1,285,172 ops/sec
ansi-colors 5,777,891 ops/sec
kleur 25,739,702 ops/sec
kleur/colors 40,477,790 ops/sec
colorette 44,079,926 ops/sec
nanocolors 44,129,214 ops/sec
picocolors 43,642,815 ops/sec
trololors 292,323 ops/sec
Install
npm install trololors
Usage
import * as colors from 'trololors';
console.log(colors.red('trololo'));
Colors
black
red
green
yellow
blue
magenta
cyan
white
gray
Background colors
bgBlack
bgRed
bgGreen
bgYellow
bgBlue
bgMagenta
bgCyan
bgWhite
bgGray