1.0.1 • Published 6 years ago

ascii-animals v1.0.1

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

photo

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)!