hhurley
Version:
Tool to find lost security patches for Linux distributions.
35 lines (20 loc) • 918 B
JavaScript
/*
Copyright IBM Research Emergent Solutions
Jesús Pérez <jesusprubio@gmail.com>
This code may only be used under the MIT license found at
https://opensource.org/licenses/MIT.
*/
;
const clc = require('cli-color');
const prettyjson = require('prettyjson');
const emoji = require('node-emoji');
/* eslint-disable no-console */
module.exports.info = str => console.log(clc.xterm(63)(str));
module.exports.json = json => console.log(prettyjson.render(json));
module.exports.error = str => console.log(clc.red(str.stack));
module.exports.title = str => console.log(clc.bold.xterm(202)(str));
module.exports.bold = str => console.log(clc.bold(str));
// module.exports.time = label => console.time(clc.xterm(63)(label));
// module.exports.timeEnd = label => console.timeEnd(clc.xterm(63)(label));
/* eslint-enable no-console */
module.exports.emoji = label => emoji.get(label);