{"version":3,"sources":["jsdelivr-header.js","/npm/welcome-for-cli@1.0.4/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCLO,UAAW,QAClB,MAAM,IAAM,MAAM,WACX,QAAS,mBAUhB,MAAM,QAAU,CAAC,EAAU,CAAC,KAE1B,MAUM,EAAO,CATX,MAAO,gBACP,QAAS,GACT,YAAa,GACb,QAAS,UACT,MAAO,UACP,MAAM,EACN,OAAO,EACP,QAAS,MAE0B,IAC/B,MAAE,EAAK,QAAE,EAAO,YAAE,EAAW,QAAE,EAAO,MAAE,EAAK,KAAE,EAAI,MAAE,EAAK,QAAE,GAChE,EAGI,EAAK,EACP,MAAM,IAAI,GAAS,QAAQ,KAC3B,MAAM,IAAI,GAAS,QACjB,EAAM,EAAO,MAAM,IAAI,GAAO,KAAO,MAAM,IAAI,GACrD,GAAS,MAGT,QAAQ,MACR,QAAQ,IACN,GAAG,EAAI,GAAG,EAAG,IAAI,aAAiB,KAAW,IAAI,OAAa,IAC5D,MAGJ,QAAQ,KAAK,iBAGA","file":"/npm/welcome-for-cli@1.0.4/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/welcome-for-cli@1.0.4/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/* Wecome For CLI */\r\nimport chalk from 'chalk';\r\nconst dim = chalk.dim;\r\nimport cmc from 'clear-my-console';\r\n\r\n/**\r\n * Welcome.\r\n *\r\n * @param String heading Heading text.\r\n * @param String subHeading Sub heading text.\r\n * @param Object options Configurable options.\r\n */\r\n\r\nconst welcome = (options = {}) => {\r\n  // options\r\n  const defaultOptions = {\r\n    title: 'ADD A HEADING',\r\n    tagLine: '',\r\n    description: '',\r\n    bgColor: '#ffffff',\r\n    color: '#000000',\r\n    bold: true,\r\n    clear: true,\r\n    version: '',\r\n  };\r\n  const opts = { ...defaultOptions, ...options };\r\n  const { title, tagLine, description, bgColor, color, bold, clear, version } =\r\n    opts;\r\n\r\n  // configure\r\n  const bg = bold\r\n    ? chalk.hex(bgColor).inverse.bold\r\n    : chalk.hex(bgColor).inverse;\r\n  const clr = bold ? chalk.hex(color).bold : chalk.hex(color);\r\n  clear && cmc();\r\n\r\n  // do it\r\n  console.log();\r\n  console.log(\r\n    `${clr(`${bg(` ${title} `)}`)} v${version} ${dim(tagLine)}\\n${dim(\r\n      description,\r\n    )}`,\r\n  );\r\n  console.log();\r\n};\r\n\r\nexport default welcome;\r\n"]}