bumburum
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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,

Package Sidebar

Install

npm i bumburum

Weekly Downloads

80

Version

1.1.1

License

ISC

Unpacked Size

27.5 kB

Total Files

8

Last publish

Collaborators

  • boris-kotlyarov
  • nykytenkoyn