Package Exports
- ascii-art
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ascii-art) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ascii-art.js
A bunch of utilities for outputting textual art
Figlet fonts
A slight mod of Figlet.js
Figlet fonts are an ASCII art font standard, widely used for terminal output.
It looks something like this:
______ _
| _ \ | |
| | | | ___ _ __ ___ ___ | |
| | | | / _ \| '_ ` _ \ / _ \ | |
| |/ / | __/| | | | | || (_) ||_|
|___/ \___||_| |_| |_| \___/ (_)
To set the directory of the fonts:
art.Figlet.fontPath = 'Fonts';
Then to render some text:
art.font('my text', 'Doom', function(rendered){
//do stuff here
});
Styles
ANSI terminals allow us to output style which format the text in the terminal. In order to do this you just need to:
art.style('my text', 'red+underline');
colors Foreground colors for characters are: black, red, green, yellow, blue, magenta, cyan, white and in some terminal environments: bright_black, bright_red, bright_green, bright_yellow, bright_blue, bright_magenta, bright_cyan, bright_white (These generally default to their non-bright variants on systems without them)
background colors Background terminal colors available are: black_bg, red_bg, green_bg, yellow_bg, blue_bg, magenta_bg, cyan_bg, white_bg
styles To style the text you may use: bold, italic, underline, framed, encircled, overline, blink, inverse
controls Control styles are: off, hidden
Images
Will be coming soon!
Hope that helps, please report any rough edges!
Enjoy,
-Abbey Hawk Sparrow