biofriction-wp-theme/node_modules/logalot/index.js

41 lines
481 B
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +02:00
'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;