You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
481 B

6 years ago
'use strict';
var figures = require('figures');
var Squeak = require('squeak');
/**
* Initialize `log`
*/
var log = new Squeak({separator: ' '});
/**
* Add types
*/
log.type('info', {
color: 'cyan',
prefix: figures.info
});
log.type('warn', {
color: 'yellow',
prefix: figures.warning
});
log.type('success', {
color: 'green',
prefix: figures.tick
});
log.type('error', {
color: 'red',
prefix: figures.cross
});
/**
* Module exports
*/
module.exports = log;