@radic/console-colors
TypeScript icon, indicating that this package has built-in type declarations

4.1.1 • Public • Published

Console Colors

Documentation

Install

npm install -g @radic/console-colors

Usage

import {parser} from '@radic/console-colors';
console.log(parser.parse(`
{bold.red.underline}This is bold, red and underlined.{/red} But we dropped the red.{reset} And just resetted the rest.
{green.bgBlue.bold}We can also mix openers and closers{/bgBlue.bgYellow./bold./green.blue}And make it really silly.
{f(#333)}If support for 256 colors is present, you can use the RGB 0 - 6  values. Also, you can provide a fallback{f(#eee).bold.underline}

Fairly advanced things are possible
{b(green).f(red).bold.underline}Some text{/f.green./underline}greeen stuff{reset}    
`))

Readme

Keywords

none

Package Sidebar

Install

npm i @radic/console-colors

Weekly Downloads

1

Version

4.1.1

License

MIT

Unpacked Size

12.3 kB

Total Files

10

Last publish

Collaborators

  • radic