0.0.2-1 • Published 1 year ago

mini-ansi v0.0.2-1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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 or b 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!

License

MIT

0.0.2-1

1 year ago

0.0.2-0

1 year ago

0.0.1

1 year ago