New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

colorium

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colorium

Lightweight terminal styling

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

Lightweight terminal styling

⚙️ Installation

npm i colorium

📖 Documentation

ES6

import colorium from 'colorium';

colorium('Hello world!').blue.log();

Commonjs

const colorium = require('colorium');

colorium('Hello world!').blue.log();

Examples

colorium('Hello world!').red.log();
const log = console.log;
log(colorium('Hello world!').red);
console.log("Hello world!".red.underline)

🙌 All styles

Modifiers

  • reset
  • bold
  • dim
  • italic
  • underline
  • blink
  • inverse
  • hidden
  • strike
  • overline

Foreground Colors

  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white
  • gray

Lighter Foreground Colors

  • lightBlack
  • lightRed
  • lightGreen
  • lightYellow
  • lightBlue
  • lightMagenta
  • lightCyan
  • lightWhite

Background Colors

  • bgBlack
  • bgRed
  • bgGreen
  • bgYellow
  • bgBlue
  • bgMagenta
  • bgCyan
  • bgWhite
  • bgGray

Lighter Background Colors

  • bgLightBlack
  • bgLightRed
  • bgLightGreen
  • bgLightYellow
  • bgLightBlue
  • bgLightMagenta
  • bgLightCyan
  • bgLightWhite

Custom Foreground Colors

  • rgb()
colorium('Hello world!').rgb(12, 234, 23).log()
  • hex()
colorium('Hello world!').hex('#B9EDDD').log();

Support me on Patreon - Check out my socials

Keywords

colorium

FAQs

Package last updated on 20 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts