Skip to content

herber/gradient-avatar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

27 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Gradient Avatar

๐ŸŒˆ Beautiful default avatars.

About

Generate beautiful and unique avatars for your users. gradient-avatar was inspired by Zeit.

gradient-avatar is also available as a microservice.

Install

$ npm install gradient-avatar

Usage

const avatar = require('gradient-avatar');

avatar('uid');
// => the avatar svg

API

avatar(seed[, size])

seed

Type: string

The seed for the generated avatar.

size

Type: number

The generated svg's size.

Returns

Type: string

The generated avatar svg.

License

MIT ยฉ Tobias Herber