deeprails
v2.0.1
Published
ASCII art for the rail-minded. Print, collect, embed.
Downloads
288
Maintainers
Readme
deeprails
ASCII art for the rail-minded. Print it, embed it, ship it.
██████╗ ███████╗███████╗██████╗ ██████╗ █████╗ ██╗██╗ ███████╗
██╔══██╗██╔════╝██╔════╝██╔══██╗██╔══██╗██╔══██╗██║██║ ██╔════╝
██║ ██║█████╗ █████╗ ██████╔╝██████╔╝███████║██║██║ ███████╗
██║ ██║██╔══╝ ██╔══╝ ██╔═══╝ ██╔══██╗██╔══██║██║██║ ╚════██║
██████╔╝███████╗███████╗██║ ██║ ██║██║ ██║██║███████╗███████║
╚═════╝ ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚══════╝╚══════╝
all aboard.Install
npm install deeprailsCLI
npx deeprails # random piece
npx deeprails --all # every piece
npx deeprails 2 # specific piece by index (0–4)
npx deeprails --helpAPI
const { print, printAll, random } = require('deeprails');print([index])
Prints a colourised ASCII art piece to stdout. Omit index for a random one.
print(); // random
print(0); // first piece
print(3); // station signprintAll()
Prints all five pieces in sequence, each in a different colour.
printAll();random()
Returns a random art string without printing it. Use this when you want to embed the art in your own output.
const art = random();
console.log(`\nWelcome!\n${art}`);Pieces
| Index | Description | |-------|----------------------| | 0 | Block text logo | | 1 | Steam locomotive | | 2 | Minimalist rails | | 3 | Retro station sign | | 4 | Speed lines |
License
MIT
