JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 25
  • Score
    100M100P100Q57421F
  • License ISC

this plugins is used for color of console message

Package Exports

  • console-color-mr

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (console-color-mr) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Description

this plugins is used for color of console message

install

npm install -D console-color-mr

use

let _console = require('console-color-mr');

DEMO1

_console.info('info');
_console.debug('debug');
_console.warn('warn');
_console.error('error');

DEMO2

_console.info('info my color', { style: 'greyBG' });

style

  • 'bold'
  • 'italic'
  • 'underline'
  • 'inverse'
  • 'strikethrough'
  • 'white'
  • 'grey'
  • 'black'
  • 'blue'
  • 'cyan'
  • 'green'
  • 'magenta'
  • 'red'
  • 'yellow'
  • 'whiteBG'
  • 'greyBG'
  • 'blackBG'
  • 'blueBG'
  • 'cyanBG'
  • 'greenBG'
  • 'magentaBG'
  • 'redBG'
  • 'yellowBG'