mini-ansi
v0.0.2-1
Published
🎨 Minimal ANSI color escape utility in under 10 line!
Downloads
12
Readme
DESCRIPTION
Minimal ANSI color escape utility in under 10 lines!
Usage
# install
npm install mini-ansi
// const ansi = require('mini-ansi') // CJS
import C from 'mini-ansi' // ESM
const { log } = console
log(C.f2('green fg'), 'normal text', C.b4(' red bg '))
log('norm', C.f1b3('red fg and yellow bg'), 'orrr', C.b2f6('cyan fg ongreen bg'))
[!Caution] ONLY SUPPORT base16
f
orb
can come in any order
[!Important] NOT_IMPLEMENTED
- color names
- modifiers
- background color
- tag function for template literals
- chained calls
Why not ...
- [ ] TODO: WRITE REASONS!