UNPKG

awais

Version:

Get to know Awais via `npx awais`.

27 lines (21 loc) 620 B
const boxen = require('boxen'); const welcome = require('cli-welcome'); const checkNode = require('cli-check-node'); const unhandled = require('cli-handle-unhandled'); const pkgJSON = require('./../package.json'); module.exports = (minimal, clear) => { unhandled(); !minimal && welcome({ title: `Ahmad Awais`, tagLine: `Howdy, nice to meet ya!`, description: pkgJSON.description, version: pkgJSON.version, bgColor: `#6937FF`, color: `#000000`, bold: true, clear, }); minimal && console.log(boxen(`Ahmad Awais`, { padding: 1, float: `center`, dimBorder: true })); checkNode('10'); };