A command-line tool for creating ASCII text art and converting it to SVG logos.
I built this so I can generate a ASCII logo and run it through my laser cutter. Example:
Laser cut on Midori notebook:

npm install -g ascii-logo-generator
# Basic usage
ascii-logo generate "Hello World"
# Use a specific font
ascii-logo generate "Hello World" --font "Standard"
# Save to a file
ascii-logo generate "Hello World" --output hello.txt
# Generate an SVG
ascii-logo generate "Hello World" --svg
# Customize SVG colors
ascii-logo generate "Hello World" --svg --color "#3366FF" --background "#EEEEEE"
# Set custom dimensions
ascii-logo generate "Hello World" --svg --width 800 --height 200
# Save to a specific file
ascii-logo generate "Hello World" --svg --output my-logo.svg
Option | Alias | Description | Default |
---|---|---|---|
--font |
-f |
Font to use for text rendering | "Standard" |
--output |
-o |
Output file path | Auto-generated filename |
--svg |
-s |
Convert to SVG format | false |
--color |
-c |
Text color for SVG (hex code or name) | "#000000" |
--background |
-b |
Background color for SVG (hex code or name) | "transparent" |
--width |
-w |
SVG width | "500" |
--height |
-h |
SVG height | "auto" |
ascii-logo generate "Big Text"
Output:
____ _ _____ _
| __ )(_) __ _|_ _|____ _| |_
| _ \| |/ _` | | |/ _ \ \/ / __|
| |_) | | (_| | | | __/> <| |_
|____/|_|\__, | |_|\___/_/\_\\__|
|___/
ascii-logo generate "Logo" --svg --color "#FF6600" --background "#EEEEEE" --output brand-logo.svg
This will create an SVG file named brand-logo.svg
with orange text on a light gray background.
# Clone the repository
git clone https://github.com/yourusername/ascii-logo-generator.git
cd ascii-logo-generator
# Install dependencies
npm install
# Build the project
npm run build
# Run locally
npm start
This package includes a web-based SVG viewer for testing:
MIT