getavataaars
1.0.0 • Public • PublishedGet Avataaars
Generate an avatar by mixing-and-matching various elements.
Usage
After installing, simply import Get Avataaars in your file.
constavatars=require("getavataaars");
Consume thegenerateAvatar()
API to get an avatar URL that you can use directly as an image. Supply the settings object to customize your avatar. All settings are pretty self-explanatory and matches theweb editor. Adding the following code, for example:
varimage=avatars.generateAvatar({Hair:avatars.Hair.Eyepatch,Accessories:avatars.Accessories.Kurt,Eyebrow:avatars.Eyebrow.Angry});
Would produce the following image:
Credits
Avataaars designed byPablo Stanley.
Web editor byFang-Pen Lin.
React npm package byFang-Pen Lin.
This NPM package is developed byClyde D'Souza.
Package Sidebar
Install
npm i getavataaars
Repository
Weekly Downloads
23
Version
1.0.0
License
MIT
Unpacked Size
24.3 kB
Total Files
9