arturo-dacevedo
v1.0.0
Published
A collection of animal sounds and utility functions.
Readme
arturo-dacevedo
arturo-dacevedo is a collection of animal sounds and utility functions.
The first utility function allows you to get a number between a minimum (inclusive) and a maximum (exclusive).
The second utility function "shortens" how you call console.log
Finally, there are 11 properties which contain animal sounds. They are
- Dog
- Cat
- Bird
- Mouse
- Cow
- Frog
- Elephant
- Duck
- Fish
- Seal
- Fox
See usage on how to invoke these sounds.
Usage
import artNPMPackage from 'arturo-dacevedo';
// You want a function that gives random number between 1 and 9
const randomNumber = artNPMPackage.getRandomInt(1, 10);
// You want to log it without the major hassle of typing console.log()
artNPMPackage.log(randomNumber);
// You want to know what does the Dog/Cat/Bird/Mouse/Cow/Frog/Elephant/Duck/Fish/Seal say
artNPMPackage.log(artNPMPackage.whatDoesTheDogSay);
artNPMPackage.log(artNPMPackage.whatDoesTheCatSay);
artNPMPackage.log(artNPMPackage.whatDoesTheBirdSay);
artNPMPackage.log(artNPMPackage.whatDoesTheMouseSay);
artNPMPackage.log(artNPMPackage.whatDoesTheCowSay);
artNPMPackage.log(artNPMPackage.whatDoesTheFrogSay);
artNPMPackage.log(artNPMPackage.whatDoesTheElephantSay);
artNPMPackage.log(artNPMPackage.whatDoesTheDuckSay);
artNPMPackage.log(artNPMPackage.whatDoesTheFishSay);
artNPMPackage.log(artNPMPackage.whatDoesTheSealSay);
// You want to know what does the fox say
artNPMPackage.log(artNPMPackage.whatDoesTheFoxSay);