Give Me an Avatar
Gets a random avatar URL from a collection of different avatar generation services.
Usage
After installing, simply import Give Me an Avatar in your file.
const avatars = require("give-me-an-avatar");
Consume the giveMeAnAvatar()
API to get an avatar URL that you can use directly as an image. You can either call the method directly or supply the settings object to customize your avatar (only a bit). All settings are pretty self-explanatory and are not mandatory. For example:
let image = avatars.giveMeAnAvatar({
Name: "John Smith",
Size: 128
});
The image variable will have the avatar image URL.
Supported avatar services
I'm not using avataaars separately since avatars.dicebear.com includes avataaars.
Credits
All the avatar services used in this npm package are outlined in the table above.
This NPM package is developed by Clyde D'Souza.