node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

log-with-colors

log-with-colors

Log with colors is a simple syntax for logging to console using colors, based on chalk

log.green('This will log to the console in the green color')

Install

$ npm i -S log-with-colors

Usage

const log = require('log-with-colors')
log.success('Hello World') //logs to the console in the green color 

API

Function Type Info
log() default Prints with process.stdout
log.error() error Prints with process.stderr
log.success() color Equals to log.green()
log.warn() color Equals to log.yellow()
log.info() color Equals to log.cyan()
Function Type
log.gray() color
log.blue() color
log.cyan() color
log.green() color
log.yellow() color
log.red() color
log.magenta() color

License

MIT © Alexandre Lopes