This document provides detailed information about the ascii-cats command-line interface.
To use ascii-cats as a command-line tool, install it globally:
npm install -g ascii-catsOnce installed, you can use the asciiCats command in your terminal:
# Display a random cat
asciiCats
# Display a specific cat
asciiCats nyanasciiCats [cat-name] [options]
cat-name(optional): The name of a specific cat to display. If omitted, a random cat will be shown.
-c, --cats: Display a list of all available cat names-h, --help: Show help information
asciiCatsOutput (example):
/\ ___ /\
( o o )
\ >#< /
/ \
/ \ ^
| | //
\ / //
/// /// --
asciiCats nyanOutput:
☆ ☆ ☆
┈┈┈┈ ╭━━━━━━╮ ☆
┈☆ ┈┈┃╳╳╳▕╲▂▂╱▏
┈┈☆ ┈┃╳╳╳▕▏▍▕▍▏
┈┈ ╰━┫╳╳╳▕▏╰┻╯▏
☆ ┈┈┈┃╳╳╳╳╲▂▂╱
☆ ╰┳┳━━┳┳╯ ☆
asciiCats --catsOutput:
CAT OPTIONS: grumpy, approaching, tubby, confused, playful, thoughtful, delighted, nyan, resting, octocat, ready-to-attack, awake, sleepy, got-dat-cat, hector, leroy, longcat, lucky, sexy, fish-bowl, halloween
asciiCats --helpOutput:
C A T M E
print a cat to your console
;,_ ,
_uP~"b d"u,
dP' "b ,d" "o
d" , `b d"' "b
l] [ " `l, d" lb
Ol ? " "b`"=uoqo,_ "l
,dBb "b "b, `"~~TObup,_
,d" (db.`" "" "tbc,_ `~"Yuu,_
.d" l`T' '= ~ `""Yu,
,dO` gP, `u, b,_ "b7
d?' ,d" l, `"b,_ `~b "1
,8i' dl `l ,ggQOV",dbgq,._" `l lb
.df' (O, " ,ggQY"~ , @@@@@d"bd~ `b "1
.df' `" -=@QgpOY"" (b @@@@P db `Lp"b,
.d( _ "ko "=d_,Q` ,_ " "b,
Ql . `"qo,._ "tQo,_`""bo ;tb, `"b,
(qQ |L ~"QQQgggc,_.,dObc,opooO `"~~";. __,7,
`qp t\io,_ `~"TOOggQV"""" _,dg,_ =PIQHib.
`qp `Q["tQQQo,_ ,pl{QOP"' 7AFR`
` `tb '""tQQQg,_ p" "b ` .;-.`Vl'
"Yb `"tQOOo,__ _,edb ` .__ /`/'| |b;=;.__
`"tQQQOOOOP"" `"\QV;qQObob"`-._`\_~~-._
"""" ._ / | |oP"\_ ~\ ~\_ ~\
`~"\ic,qggddOOP"| | ~\ `\ ~-._
,qP`"""|" | `\ `; `\ `\
_ _,p" | | `\`; | |
"boo,._dP" `\_ `\ `\| `\ ;
`"7tY~' `\ `\ `|_ |
`~\ |
Options:
-c, --cats get list of cat names
-h, --help Show help [boolean]
Examples:
asciiCats
asciiCats nyan
You can pipe the output of ascii-cats to other commands:
# Save a cat to a file
asciiCats nyan > nyan-cat.txt
# Use a cat in a banner
asciiCats tubby | banner
# Send a cat via email (using mailx)
asciiCats | mailx -s "Have a cat!" recipient@example.comYou can use ascii-cats in shell scripts for fun error messages or welcome screens:
#!/bin/bash
# Display a welcome message with a cat
echo "Welcome to my script!"
asciiCats
# Do some work...
if [ $? -ne 0 ]; then
echo "Something went wrong!"
asciiCats grumpy
exit 1
fi
# Success message
echo "All done successfully!"
asciiCats delightedIf you get a "command not found" error, make sure:
- You've installed ascii-cats globally (
npm install -g ascii-cats) - Your npm global bin directory is in your PATH
- You're using the correct command name (
asciiCats)
If cats don't display correctly:
- Make sure your terminal supports Unicode characters
- Check that your terminal font supports the characters used
- Try a different cat that might use more basic ASCII characters