ascii-animals
v1.0.1
Published
A library for displaying ascii art animals
Downloads
3
Readme
Animal Ascii!
Ever wanted to use ascii to display animals in your NodeJS console? No? Well using this module, it's really simple!
Installation
Just use npm:
npm install ascii-animals --save
Supported Animals
- cat
- cat_moon
- dog
- dog_surprise
- snake
- snail
- lion_head
Documentation
animals.drawAnimal(animal)
animal
- The name of the animal.
This function will draw the animal specified into the console using ascii art.
animals.getAnimal(animal)
animal
- The name of the animal.
This function will return the ascii art.
Example
var animals = require('ascii-animals');
//Draw an animal to console - in this case, a cat
animals.drawAnimal("cat");
//or store it in a variable
const cat = animals.getAnimal("cat");
Contribution
Adding animals is really easy, so Pull Requests are very welcomed! Just search for ascii art online, or draw it yourself (more fun)!