fallback-avatar
v1.0.0
Published
Small module to generate an SVG that you can serve inlined for images so you always offer a default avatar for your user.
Downloads
4
Readme
Fallback Avatar
Small module to generate an SVG that you can serve inlined for images so you always offer a default avatar for your user.
Usage
const fallbackAvatar = require('fallback-avatar');
fallbackAvatar.getSVG('a');
fallbackAvatar.getDataSVG('l'); // Data URI string for direct image usage.