https://github.com/bukinoshita/hash-avatar
:rainbow: Hash avatar algorithm
https://github.com/bukinoshita/hash-avatar
avatar gradient hash javascript nodejs svg
Last synced: 3 months ago
JSON representation
:rainbow: Hash avatar algorithm
- Host: GitHub
- URL: https://github.com/bukinoshita/hash-avatar
- Owner: bukinoshita
- License: mit
- Created: 2017-05-18T23:26:47.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-03T12:17:30.000Z (over 2 years ago)
- Last Synced: 2025-02-27T05:55:53.839Z (4 months ago)
- Topics: avatar, gradient, hash, javascript, nodejs, svg
- Language: JavaScript
- Homepage:
- Size: 349 KB
- Stars: 43
- Watchers: 2
- Forks: 2
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hash-avatar [](https://travis-ci.org/bukinoshita/hash-avatar)
> Hash avatar algorithm
## Install
```
$ npm install --save hash-avatar
```## Usage
```js
import hashAvatar from 'hash-avatar'hashAvatar('uid', { size: 100 })
// => It will return a SVG
```## API
### hashAvatar(uid, { size })#### uid
Type: `string`
Required#### size
Type: `number`
Required## Demo

## Related
- [react-hash-avatar](https://github.com/bukinoshita/react-hash-avatar) — React hash avatar algorithm
## License
MIT © [Bu Kinoshita](https://bukinoshita.io)