2.0.1 • Published 3 years ago

std-terminal-logger v2.0.1

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

std-terminal-logger

NOTICE: This package was change name to chalk-ex and the name std-terminal-logger is no longer used.

An easy use console print terminal with string styling.

Installation

pnpm

pnpm add std-terminal-logger chalk

npm

npm i std-terminal-logger chalk

yarn

yarn add std-terminal-logger chalk

Usage

import { log, label, text } from 'std-terminal-logger';

log(label.green('Hello world!'), text.orange('Hello world!'));

npm.io

use with the preset label

  • log
  • info
  • success
  • warn
  • error
import { log, label } from 'std-terminal-logger';

log(label.log, label.info, label.success, label.warn, label.error);

npm.io

use with the preset color

  • red
  • pink
  • purple
  • deepPurple
  • indigo
  • blue
  • lightBlue
  • cyan
  • teal
  • green
  • lightGreen
  • lime
  • yellow
  • amber
  • orange
  • deepOrange
  • brown
  • gray
  • blueGray
  • white
  • black
import { log, label, text } from 'std-terminal-logger';

log(label.green('Foo'), text.green('bar'));

npm.io

All color:

npm.io