everything-dev
Version:
A consolidated product package for building Module Federation apps with oRPC APIs.
1 lines • 1.45 kB
Source Map (JSON)
{"version":3,"file":"banner.mjs","names":[],"sources":["../../src/utils/banner.ts"],"sourcesContent":["import { readFileSync } from \"node:fs\";\nimport { colors, divider, gradients } from \"./theme\";\n\nconst pkg = JSON.parse(readFileSync(new URL(\"../../package.json\", import.meta.url), \"utf-8\")) as {\n version: string;\n};\n\nconst ASCII_BOS = `\n ██████╗ ██████╗ ███████╗\n ██╔══██╗██╔═══██╗██╔════╝\n ██████╔╝██║ ██║███████╗\n ██╔══██╗██║ ██║╚════██║\n ██████╔╝╚██████╔╝███████║\n ╚═════╝ ╚═════╝ ╚══════╝`;\n\nexport function printBanner(title = \"everything-dev\", version = pkg.version) {\n console.log(gradients.cyber(ASCII_BOS));\n console.log();\n console.log(colors.dim(` ${title} ${colors.cyan(`v${version}`)}`));\n console.log(colors.dim(` ${divider(30)}`));\n console.log();\n}\n"],"mappings":";;;;AAGA,MAAM,MAAM,KAAK,MAAM,aAAa,IAAI,IAAI,sBAAsB,YAAY,GAAG,GAAG,OAAO,CAAC;AAI5F,MAAM,YAAY;;;;;;;AAQlB,SAAgB,YAAY,QAAQ,kBAAkB,UAAU,IAAI,SAAS;CAC3E,QAAQ,IAAI,UAAU,MAAM,SAAS,CAAC;CACtC,QAAQ,IAAI;CACZ,QAAQ,IAAI,OAAO,IAAI,KAAK,MAAM,GAAG,OAAO,KAAK,IAAI,SAAS,GAAG,CAAC;CAClE,QAAQ,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,GAAG,CAAC;CAC1C,QAAQ,IAAI;AACd"}