import Colors from "chalk"; const Year = new Date().getFullYear(); const Title = Colors.bold.underline("Construct Factory - CDK"); const Description = Colors.italic("Deployment Extensions & Utilities"); const Copyright = Colors.dim("Open Source" + "," + " " + Year); const License = Colors.dim("BSD-3 License"); const Generate = () => { const Lines: string[] = []; /// Check if NPX is interfacing `factory` (process.env?.npm_lifecycle_event === "npx") && Lines.push(""); Lines.push([Colors.blue(" //\\\\--/"), " ", Colors.magenta(" //\\\\--/")].join("")); Lines.push([Colors.blue(" ╱╱__\\\\/"), " ", Colors.magenta(" //__\\\\/")].join("") + " " + Title); Lines.push([Colors.blue(" ╱╱\\\\--/"), " ", Colors.magenta(" //\\\\--/")].join("")); Lines.push([Colors.blue(" //__\\\\/"), " ", Colors.magenta(" //__\\\\/")].join("") + " " + Description); Lines.push([Colors.blue(" \\\\--/\\\\"), " ", Colors.magenta("//\\\\--/")].join("")); Lines.push([Colors.blue(" \\\\/__\\\\"), "", Colors.magenta("//__\\\\/")].join("") + " " + Copyright + " " + License); Lines.push([Colors.blue(" \\\\---"), "", Colors.magenta("//\\\\--/")].join("")); Lines.push([Colors.blue(" \\\\"), " ", Colors.magenta("//__\\\\/")].join("") + " " + "--[H]elp for Usage"); Lines.push([Colors.blue(" \\\\"), "", Colors.magenta("\\\\--//")].join("")); Lines.push(""); return Lines.join("\n"); }; const Header = Generate(); export { Header }; export default Header;