/animal-avatars

A Javascript library to generate random user avatars

Primary LanguageJavaScriptMIT LicenseMIT

Animal Avatars

A Javascript library to generate random user avatars (Similar to Google's Anonymous animals). Each avatar has a random name and a corresponding profile image, generated by the Adorable Avatars API. Use browserify to bundle it for local use.

Install

To install the package, run npm install animal-avatars.js

Usage

var AnimalAvatar = require("animal-avatars.js");

// Create Avatar
let myAvatar = new AnimalAvatar();

// Name
myAvatar.getAvatarName();

// Url to Avatar image
myAvatar.getAvatarUrl();