Show More
Commit Commit message Age Author Refs
r6:ca4c5ccea315
Upgraded deps
0
r5:864e1c3ff93f
Added test coverage
0
r4:1c37d28936fb
Updated deps and removed private registry
0
r3:327c4cfe1c71
Removed 131 lines and made test code look better
0
r2:4e6c332073c8
Updated README
0
r1:c4c3df90cb22
Added description to "package.json"
0
r0:efed6db538be
Initial commit
0
< 1 >

@webb/console

Print console messages in STYLE.

Install

$ npm i @webb/console

Usage

import print from "@webb/console";

console.log(print.cyan("This text is cyan"));

// You can also nest styles!
console.log(print.green(print.bold("This text is bold and green")));

API

print.[parameter](input);

[parameter]

Type: enum

Available options:

Color
  • black | blackLine
  • blue | blueLine
  • cyan | cyanLine
  • gray | grayLine OR grey | greyLine
  • green | greenLine
  • magenta | magentaLine
  • red | redLine
  • white | whiteLine
  • yellow | yellowLine
Decoration
  • bold
  • dim
  • invert
  • underline

input

Type: string

Tests

# Run all tests, sequentially
$ npm test

# Test dependencies for latest versions
$ npm run test:dependencies

# Lint "src" directory
$ npm run test:typescript

# Test this module
$ npm run test:assert

# Not really a test, just shows a 20x9 rainbow-esque banner
$ npm run showcase