shadi
Version:
Get to know Shadi via `npx shadi`.
48 lines (37 loc) • 1.54 kB
JavaScript
import chalk from "chalk";
import sym from "log-symbols";
import alert from "cli-alerts";
import init from "./utils/init.js";
const log = console.log;
const dim = chalk.dim;
const italic = chalk.italic;
const twitterClr = chalk.hex(`#1da1f2`).bold.inverse;
const linkedInClr = chalk.hex(`#e68523`).bold.inverse;
const githubClr = chalk.hex(`#6cc644`).bold.inverse;
const blogClr = chalk.hex(`#6937ff`).bold.inverse;
// Alert Colors
const successColor = chalk.green;
const infoColor = chalk.blue;
const warningColor = chalk.hex("#FFA500");
const errorColor = chalk.red.bold;
// In a form of IIFE (Immediate Invoked Function Expression) to avoid putting the below in
// Node global scope!
(() => {
init();
log(`
${italic(`I am into computing and EdTech. Programming is my passion and I am developing my skills to
be a professional Node Full Stack Developer. More about me will be shared with the world soon!`)}
${twitterClr(` Twitter `)} ${dim(`https://twitter.com/shadiayoub`)}
${githubClr(` GitHub `)} ${dim(`https://github.com/Shadi-Ayoub`)}
${linkedInClr(` LinkedIn `)} ${dim(`https://www.linkedin.com/in/shadiayoub`)}
${blogClr(` Blog `)} ${dim(`Coming Soon...`)}
`);
log(`
${sym.success} ${successColor(`SUCCESS`)} Happy to connect!
${sym.info} ${infoColor(`INFO`)} Follow me for more packages.
${sym.warning} ${warningColor(`WARNING`)} Please comply with copyright terms...
${sym.error} ${errorColor(`ERROR`)} I am on vacation during December.
`);
alert({ type: "success", msg: "Thank you!" });
})();