Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import to from 'to-js';
import chalk from 'chalk';
import symbols from 'log-symbols';
import perfy from 'perfy';
symbols.warn = symbols.warning;
symbols.ok = symbols.okay = symbols.success;
import ora from 'ora';
import formatSeconds from 'format-seconds';
import Emitter from 'events-async';
/// @name Logger
/// @description
/// This is the main logger for the application
export default class Logger extends Emitter {
///# @name constructor
///# @arg {object} options [{ log: true, verbose: false, timestamp: true }]
constructor(options = {}) {
super();
this.setMaxListeners(50);
this.options = to.extend({