Skip to content

YDawn/gutil-color-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gutil-color-log

A wrapper around gulp-util's log for less verbose colored logs.

Install

npm install --save-dev gutil-color-log

Usage

const log = require('gutil-color-log')

function greaterThanTen(num) {
  if(num > 10) {
    log('green', 'Success')
  } else {
    log('red', 'Failure')
  }
}

greaterThanTen(25) // green output

greaterThanTen(7) // red output

log('magenta', 'There are more colors')
log('cyan', 'See them all at the link below')
log('blue', 'https://www.npmjs.com/package/chalk')

![alt text][screenshot] [screenshot]: https://raw.githubusercontent.com/timurtu/gutil-color-log/master/res/sc.png "gutil-color-log Screenshot"

About

A wrapper around gulp util's log that makes logging colors less verbose.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors