Skip to content

banner

CliBrand = "fungi" | "vishnu" | "fungi-local-auth" | "computer"


BannerOptions = object

brand: CliBrand

columns: number

interactive: boolean

noColor: boolean

optional rawPty?: boolean

const mushroom: “ …::::::::..\n ……:========-:.\n :……..-==========-:\n .-=:……:-============:\n :====::….:::::––======-\n .-=-:::…………….::-==-\n -::…. .:. .::. …..:-.\n ….. .:==*: . .-*==. ….:\n …. . :=#+::::::#*- . ….\n … . . :====. . …..\n .. . . . . ..\n . . . . . .\n . . .\n . . .\n”

Retained Botanical terminal art; spacing is part of the image.


const fungiWordmark: “\n\n ,d8888b d8,\n 88P’ `8P\n d888888P\n ?88’ ?88 d8P 88bd88b d888b8b 88b\n 88P d88 88 88P’ ?8bd8P’ ?88 88P\n d88 ?8( d88 d88 88P88b ,88b d88\n d88’ `?88P’?8bd88’ 88b`?88P’`88bd88’\n )88\n ,88P\n `?8888P\n”

Retained Botanical terminal art; spacing is part of the image.


const computerMushroom: “ .-"""-.\n / . . \\n (_ . . _)\n | |\n |_____|\n”

Retained Computer terminal cap; spacing is part of the image.


const vishnuWordmark: “\n\n d8, d8b\n `8P ?88\n 88b\n ?88 d8P 88b .d888b, 888888b 88bd88b ?88 d8P\n d88 d8P’ 88P ?8b, 88P `?8b 88P’ ?8bd88 88\n ?8b ,88’ d88 `?8b d88 88P d88 88P?8( d88\n `?888P’ d88’ `?888P’ d88’ 88bd88’ 88b`?88P’?8b\n\n\n\n”

Whimsy lettering, matching the retained Fungi mark’s ten-line canvas.


const compactMushroom: “ .—.\n (_____)\n | |\n”

Small cap for narrow terminals.

colorizeBanner(art, brand?): string

A single truecolor wrap retains every space of the original art.

string

CliBrand = "fungi"

string


renderBanner(options): string

Browser-safe renderer. Raw terminal writes need CRLF; ordinary TTYs own ONLCR.

BannerOptions

string