https://github.com/herber/gradient-avatar
🌈 Beautiful default avatars.
https://github.com/herber/gradient-avatar
avatar gradients hacktoberfest hash
Last synced: 6 months ago
JSON representation
🌈 Beautiful default avatars.
- Host: GitHub
- URL: https://github.com/herber/gradient-avatar
- Owner: herber
- License: mit
- Created: 2018-10-01T14:19:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-06T06:55:13.000Z (over 1 year ago)
- Last Synced: 2025-03-26T01:41:32.724Z (7 months ago)
- Topics: avatar, gradients, hacktoberfest, hash
- Language: JavaScript
- Homepage:
- Size: 18.6 KB
- Stars: 56
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
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](https://github.com/usemeta/gradient-avatar-service).
## Install
```
$ npm install gradient-avatar
```## Usage
```js
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](https://github.com/herber)