Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

bumburum

BorisKotlyarov151ISC1.1.1TypeScript support: included

Build Status NPM version [![depe

colors, console, console colors

readme

Bumburum

Build Status NPM version dependencies Status devDependencies Status

Changing the color of text in the console is very easy, especially if you use bumburum

bumburum

Install

npm i bumburum

Usage

JavaScript

const colors = require('bumburum');

// font color
console.log(`test: ${colors.font.Green}`,  `Any text`);

// background color
console.log(`test: ${colors.background.Green}`, `Any text`);

// two or more colors
console.log(
    `Using ${colors.font.Red} ${colors.background.Green} ${colors.font.Blue} ${colors.font.Yellow}`,

    'two',
    'OR',
    'more',
    'colors'
);

TypeScript

import colors from 'bumburum';


console.log(`test: ${colors.font.Green}`,  `Any text`);
console.log(`test: ${colors.background.Green}`, `Any text`);

Result: bumburum

Colors support

Font

colors.font.Black,
colors.font.Red,
colors.font.Green,
colors.font.Yellow,
colors.font.Blue,
colors.font.Magenta,
colors.font.Cyan,
colors.font.White,

Background

colors.background.Black,
colors.background.Red,
colors.background.Green,
colors.background.Yellow,
colors.background.Blue,
colors.background.Magenta,
colors.background.Cyan,
colors.background.White,