0.2.13 • Published 3 years ago

pixavatar v0.2.13

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Pixavatar

Generates a SVG image with a Github like avatar based on username or any other text

Instalation

npm install pixavatar

or

yarn add pixavatar

Usage

import { getAvatar } from 'pixavatar'

const Avatar = ({ username }) => {
  const svg = getAvatar('username')
  const blob = new Blob([svg], { type: 'image/svg+xml' })
  const url = URL.createObjectURL(blob)

  return <img src={url} />
}
0.2.13

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.6

3 years ago

0.2.3

3 years ago

0.1.0

3 years ago