jamiett
Version:
Get to know Jamie via 'npx jamiett'
34 lines (25 loc) • 798 B
JavaScript
//above code only works on mac
const pkgJSON = require('./package.json');
const welcome = require('cli-welcome');
const chalk = require('chalk');
welcome({
title: pkgJSON.name,
tagLine: `Hey there`,
description: pkgJSON.description,
version: pkgJSON.version,
bgColor: `#FADC00`,
color: `#000000`,
bold: true,
clear: true,
})
// console.log(`
// Name: ${pkgJSON.name}
// Version: ${pkgJSON.version}
// Description: ${pkgJSON.description}
// `);
// console.log('Jamie Thompson https://github.com/thommadison');
console.log(chalk.dim('Jamie Thompson ') + chalk.magenta('https://github.com/thommadison'));
const error = chalk.bold.red;
const warning = chalk.hex('#FFA500');
console.log(error('Error'));