Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
const chalk = require('chalk');
const pad = require('pad-component');
const wrap = require('wrap-ansi');
const stringWidth = require('string-width');
const stripAnsi = require('strip-ansi');
const ansiStyles = require('ansi-styles');
const ansiRegex = require('ansi-regex')();
const cliBoxes = require('cli-boxes');
const border = cliBoxes.round;
const leftOffset = 17;
const defaultGreeting =
'\n _-----_ ' +
'\n | | ' +
'\n |' + chalk.red('--(o)--') + '| ' +
'\n `---------´ ' +
'\n ' + chalk.yellow('(') + ' _' + chalk.yellow('´U`') + '_ ' + chalk.yellow(')') + ' ' +
'\n /___A___\\ /' +
'\n ' + chalk.yellow('| ~ |') + ' ' +
'\n __' + chalk.yellow('\'.___.\'') + '__ ' +
'\n ´ ' + chalk.red('` |') + '° ' + chalk.red('´ Y') + ' ` ';
module.exports = (message, options) => {
message = (message || 'Welcome to Yeoman, ladies and gentlemen!').trim();
options = options || {};