Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var banner = figlet.textSync((options.name || pkg.name).toUpperCase(), {
font: 'Small',
horizontalLayout: 'default',
verticalLayout: 'default'
});
var meta = ['Copyright(c) ',
(new Date().getFullYear()), ', ',
(options.author || pkg.author.name),
' | Version: ',
(options.version || pkg.version), '\n'].join('');
console.log(banner.red);
console.log(meta.gray);
SimpleShell.registerCommand({
name: 'help',
help: 'Show this help menu',
handler: helpHandler
});
SimpleShell.registerCommand({
name: 'exit',
help: 'Exit the console',
handler: function() {
rl.close();
}
});
}