animal-avatars.js
v0.0.2
Published
A client side javascript library to generate random avatars
Downloads
5
Readme
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();