This package has been deprecated

Author message:

Development of this module has been stopped.

cconsole

4.1.1 • Public • Published

cconsole Build Status

Zero-dependency simple coloured console output library.

Installation

Using npm:

$ npm install cconsole

API

cconsole(string)

Example

const cconsole = require('cconsole');
 
cconsole('{red(here is some red text)} and {blue(some blue)} text');
 
/*
 
    supports the following tags:
 
    {bold( .. text goes here .. )}
    {underline( .. text goes here .. )}
    {italic( .. text goes here .. )}
    {red( .. text goes here .. )}
    {blue( .. text goes here .. )}
    {green( .. text goes here .. )}
    {purple( .. text goes here .. )}
    {cyan( .. text goes here .. )}
    {yellow( .. text goes here .. )}
    {gray( .. text goes here .. )}
    {grey( .. text goes here .. )}
    {bg_red( .. text goes here .. )}
    {bg_blue( .. text goes here .. )}
    {bg_green( .. text goes here .. )}
    {bg_purple( .. text goes here .. )}
    {bg_cyan( .. text goes here .. )}
    {bg_yellow( .. text goes here .. )}
    {bg_gray( .. text goes here .. )}
    {bg_grey( .. text goes here .. )}
    {inverse( .. text goes here .. )}
 
*/

Package Sidebar

Install

npm i cconsole

Weekly Downloads

17

Version

4.1.1

License

MIT

Unpacked Size

5.11 kB

Total Files

9

Last publish

Collaborators

  • roryrjb