we are 100% JS, with a common code path in browser and server †. Other libraries out there do too little, focus on logging and have inconsistent ANSI handling *.runs in the browser and Node.js (CommonJS, AMD, globals, webpack, or webcomponents).handles the ugly intersection of multiline text and ansi codes for you.no prototype manipulation - No String.prototype usage.color profiles support - other libraries mostly assume you are running x11.modular - small set of purpose built modules all interacting through a common ansi library.It features support for Images, Styles, Tables, Graphs and Figlet Fonts as well as handling multi-line joining and compositing automatically. In that same vein, I offer ascii-art as an update, expansion and generalization of MooAsciiArt and at the same time it can replace your existing ansi colors library. In the beginning there was colors.js but in the fine tradition of vendors calling out a problem they have the solution to, chalk was introduced. Images, fonts, tables, ansi styles and compositing in Node.js & the browser. To create more ponies use util-say-git AUR and store them in ~/.local/share/ponysay/ponies and ~/.local/share/ponysay/ttyponies/ for desktop and TTY, respectively. To select a pony to display, run $ ponysay -pony x "message", where x is a pony. The syntax is the same, meaning $ ponysay message to say something and ponysay -l for a complete list of ponies.
Why else would )įor full 256-colored cowsay-like art use ponysay (version 3.0 has 422 ponies). Note: The randomly selected cow is actually a toad chosen from a database with custom ASCII art $ fortune -a | fmt -80 -s | $(shuf -n 1 -e cowsay cowthink) -$(shuf -n 1 -e b d g p s t w y) -f $(shuf -n 1 -e $(cowsay -l | tail -n +2)) -n Display a random cow with a random facial expression and wrap long lines of fortune text:.( (computers) % A language that doesn't )Ĭomplex commands can be chained to produce detailed ASCII art such as this Futurama example. Random cow with fortune $ fortune -c | cowthink -f $(find /usr/share/cows -type f | shuf -n 1) The easiest way create a custom cow file is to use an existing one as a template. These files can be edited to the user's liking custom images can also be created from scratch or found on the net. cow text files located in /usr/share/cows, and all themes can be listed with the cowsay -l. sl - A steam locomotive runs across your terminal when you type sl as you meant to type ls.
jp2a - A small utility for converting JPG and PNG images to ASCII.FIGlet - A program for making large letters out of ordinary text.cmatrix - Animation that plays in terminal based on the text from "The Matrix".catimg - Print images in a terminal with 256 colors support.cbonsai - A bonsai tree generator, written in C using ncurses.boxes - Text mode box and comment drawing filter.bash-pipes - An animated pipes terminal screensaver.Banner - Print large banners to ASCII terminals.Asciiquarium - An aquarium/sea animation in ASCII art.ascii-rain - Comfy rain for your console written in C with Ncurses.