0.3.2 • Published 10 months ago

stalwart-ascii-font v0.3.2

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

Stalwart and Stalwart Mono (ascii fonts)

Fonts with a height (ex) of 4 rows and a width (ch) of 6 columns.

Try it out at: https://garron.net/code/stalwart/

Regular

╭────╮╭───╮ ╭────╮╭───╮ ╭────╮╭────╮╭────╮╭─╮╭─╮╭───╮  ╭─╮
│ ⊂⊃ ││ ⊂⊃ ││ ╭──╯│ ╭╮ ││ ──┬╯│ ──┬╯│ ╭──┤│ ╰╯ │╰╮ ╭╯  │ │
│ ╭╮ ││ ⊂⊃ ││ ╰──╮│ ╰╯ ││ ──┴╮│ ╭─╯ │ ╰╯ ││ ╭╮ │╭╯ ╰╮╭─│ │
╰─╯╰─╯╰───╯ ╰────╯╰───╯ ╰────╯╰─╯   ╰────╯╰─╯╰─╯╰───╯╰───╯
╭─╮ ╭─╮╭─╮  ╭─╮  ╭─╮╭──╮╭─╮╭────╮╭────╮╭────╮╭────╮╭────╮╭─────╮
│ ╵/ / │ │  │  \/  ││  ╰╮ ││ ╭╮ ││ ⊂⊃ ││ ╭╮ ││ ⊂⊃ ││  ──┤╰─╮ ╭─╯
│ ╷\ \ │ ╰─╮│ │\/│ ││ ╰╮  ││ ╰╯ ││ ╭──╯│ ╰╯ ││ \ \╯├──  │  │ │  
╰─╯ ╰─╯╰───╯╰─╯  ╰─╯╰─╯╰──╯╰────╯╰─╯   ╰──\_\╰─╯╰─╯╰────╯  ╰─╯  
╭─╮ ╭─╮╭──╮ ╭──╮╭─╮  ╭─╮╭─╮╭─╮╭─╮ ╭─╮╭────╮
│ │ │ │ ╲ ╲ ╱ ╱ │ ╵╱╲╵ │╰╮╰╯╭╯│ ╰─╯ │╰─╮ ╱ 
│ ╰─╯ │  ╲ V ╱   ╲ ╱╲ ╱ ╭╯╭╮╰╮╰─╮ ╭─╯ ╱ ╰─╮
╰─────╯  ╰───╯   ╰─╯╰─╯ ╰─╯╰─╯  ╰─╯  ╰────╯
╭────╮ ╭─╮ ╭────╮╭────╮╭─╮╭─╮╭────╮╭────╮╭────╮╭────╮╭────╮
│ ╭/ │╰╮ │ ├──  │├──  ││ ╰╯ ││  ──┤│ ───┤╰─/ / │ ⊂⊃ ││ ⊂⊃ │
│ /╯ │╭╯ ╰╮│  ──┤├──  │╰──╮ │├──\ ││ ⊂⊃ │ / /  │ ⊂⊃ │├─── │
╰────╯╰───╯╰────╯╰────╯   ╰─╯╰────╯╰────╯╰──╯  ╰────╯╰────╯

Mono

╭────╮╭───╮ ╭────╮╭───╮ ╭────╮╭────╮╭────╮╭─╮╭─╮╭────╮   ╭─╮
│ ⊂⊃ ││ ⊂⊃ ││ ╭──╯│ ╭╮ ││ ──┬╯│ ──┬╯│ ╭──┤│ ╰╯ │╰─╮╭─╯   │ │
│ ╭╮ ││ ⊂⊃ ││ ╰──╮│ ╰╯ ││ ──┴╮│ ╭─╯ │ ╰╯ ││ ╭╮ │╭─╯╰─╮╭──│ │
╰─╯╰─╯╰───╯ ╰────╯╰───╯ ╰────╯╰─╯   ╰────╯╰─╯╰─╯╰────╯╰────╯
╭─╮╭─╮╭─╮   ╭╮  ╭╮╭─╮╭─╮╭────╮╭────╮╭────╮╭────╮╭────╮╭────╮
│ ╵ / │ │   │ \/ ││ ╰╮ ││ ╭╮ ││ ⊂⊃ ││ ╭╮ ││ ⊂⊃ ││  ──┤╰╮  ╭╯
│ ╷ \ │ ╰──╮│ \/ ││ ╰╮ ││ ╰╯ ││ ╭──╯│ ╰╯ ││ \ \╯├──  │ │  │ 
╰─╯╰─╯╰────╯╰╯╰╯╰╯╰─╯╰─╯╰────╯╰─╯   ╰──\_\╰─╯╰─╯╰────╯ ╰──╯ 
╭─╮╭─╮╭─╮╭─╮╭╮╭╮╭╮╭─╮╭─╮╭─╮╭─╮╭────╮
│ ││ ││ ├╯╭╯│ /\ │╰╮╰╯╭╯│ ╰╯ │╰─╮ ╱ 
│ ╰╯ ││ ╵╭╯ │ /\ │╭╯╭╮╰╮╰╭── │ ╱ ╰─╮
╰────╯╰──╯  ╰╯  ╰╯╰─╯╰─╯ ╰───╯╰────╯
╭────╮ ╭──╮ ╭────╮╭────╮╭─╮╭─╮╭────╮╭────╮╭────╮╭────╮╭────╮
│ ╭/ │╰╮  │ ├──  │├──  ││ ╰╯ ││  ──┤│ ───┤╰─/ / │ ⊂⊃ ││ ⊂⊃ │
│ /╯ │╭╯  ╰╮│  ──┤├──  │╰──╮ │├──\ ││ ⊂⊃ │ / /  │ ⊂⊃ │├─── │
╰────╯╰────╯╰────╯╰────╯   ╰─╯╰────╯╰────╯╰──╯  ╰────╯╰────╯

Generate text

Requires runtime support for TypeScript, so only works with bun at the moment:

bun x stalwart-ascii-font "Hello World!"
bun x stalwart-ascii-font --mono "meow"

TypeScript API:

function generateStalwartText(text: string, options?: Options);
function printStalwartText(text: string, options?: Options);

interface Options {
  mono?: boolean;
  autoUppercase?: boolean;
}
0.3.2

10 months ago

0.3.1

10 months ago

0.3.0

10 months ago

0.2.1

10 months ago

0.2.0

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago