UNPKG

everything-dev

Version:

A consolidated product package for building Module Federation apps with oRPC APIs.

23 lines (21 loc) • 1.03 kB
import { colors, divider, gradients } from "./theme.mjs"; import { readFileSync } from "node:fs"; //#region src/utils/banner.ts const pkg = JSON.parse(readFileSync(new URL("../../package.json", import.meta.url), "utf-8")); const ASCII_BOS = ` ██████╗ ██████╗ ███████╗ ██╔══██╗██╔═══██╗██╔════╝ ██████╔╝██║ ██║███████╗ ██╔══██╗██║ ██║╚════██║ ██████╔╝╚██████╔╝███████║ ╚═════╝ ╚═════╝ ╚══════╝`; function printBanner(title = "everything-dev", version = pkg.version) { console.log(gradients.cyber(ASCII_BOS)); console.log(); console.log(colors.dim(` ${title} ${colors.cyan(`v${version}`)}`)); console.log(colors.dim(` ${divider(30)}`)); console.log(); } //#endregion export { printBanner }; //# sourceMappingURL=banner.mjs.map