1.0.1 • Published 5 years ago

rapid-console v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

rapid-console

  • simple, unique style console for command line tool.
  • you need not to consider which color to set.

rapid console

changelog>>>>

install

npm i rapid-console -D

usage

// commonjs

const RConsole = require("rapid-console");

RConsole.note("ABC...");

//...

or

// typescript

import RConsole from "rapid-console";

RConsole.note("ABC...");

//...

API

title(message)

console a title with outline

  • message string

note(message)

console a note message

  • message string

info(message)

console a info message

  • message string

success(message)

console a success message

  • message string

warning(message)

console a warning message

  • message string

error(message)

console an error message

  • message string

plain(message,bgColor,fontColor)

console a plain message with custom color style

  • message string
  • bgColor string
  • fontColor string

note: color must be one of these: "black" | "white" | "green" | "yellow" | "blue" | "red" | "cyan"


line(n)

console lines with no content

  • n: number

split(n,placeHolder)

console split line with spec placeholder

  • n: number the count of place holder, default is 20
  • placeHolder: string place holder string, default is "*"

async colorFlash(message,time)

console a message using colorful flash animation

  • message: string
  • time: number the duration of the animation

note the method is an async function


related

chalk

chalk-animate

1.0.1

5 years ago

1.0.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago