awais-c
Version:
Get to know Awais via `npx awais-c`
43 lines (33 loc) • 1.03 kB
JavaScript
const pkgJSON = require('./package.json');
const welcome = require('cli-welcome');
const chalk = require('chalk');
const log = console.log;
welcome({
title: pkgJSON.name,
version: pkgJSON.version,
description: pkgJSON.description,
tagLine: `Get to know Awais`,
bgColor: `#FADC00`,
color: `#000000`,
clear: true,
bold: true,
});
log(`
${chalk.blue('Camilo García')}
${chalk.dim('Description !!!')}
🫥 Twitter: ${chalk.dim('https://twitter.com/gcgarciab')}
`);
log(chalk.blue('Hello') + ' World' + chalk.red('!'));
// Compose multiple styles using the chainable API
log(chalk.blue.bgRed.bold('Hello world!'));
// Pass in multiple arguments
log(chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz'));
// Nest styles
log(chalk.red('Hello', chalk.underline.bgBlue('world') + '!'));
// Nest styles of the same type even (color, underline, background)
log(chalk.green(
'I am a green line ' +
chalk.blue.underline.bold('with a blue substring') +
' that becomes green again!'
));