ANSI ART
Create ANSI art and render it with speech bubbles inside node.
https://gauravchl.github.io/ansi-art/webapp/
Install
- Create and download the ANSI art from webapp: https://gauravchl.github.io/ansi-art/webapp/
- Install
npm install ansi-art
package to render the downloaded art file. - You can also render the pre-made art files in '/src/arts/'.
Examples
// Using existing artlet ANSI = default;let mario = ANSI;console;
// Or use it with ES6 module;let mario = ANSI;console;
// Using custom art file;let art = ANSIconsole;
// Using random art;let art = ANSIconsole;
// Using Speech bubble;let art = ANSI
ANSI.get(options)
Parameter | Type | Description |
---|---|---|
options.filePath | string | Path to custom ANSI art file(eg: ~/mario.ansi) |
options.artName | string | Name of existing ANSI art available within package.See available arts |
options.speechText | string | If provided, render the text inside 'speech bubble' above the ANSI art |
options.speechBubbleOptions | object | options for speech bubble, See available options here |
Mario credits: https://github.com/acarl005/node-super-mario
Parrot credits: https://github.com/matheuss/parrotsay-api
Contributing
Please feel free to submit any bugs or suggestions as issues or request to add any art into existing collections. Pull requests are welcome.