Skip to content

Jazzy deterministic identicons for a more entertaining future.

License

Notifications You must be signed in to change notification settings

epldlnwynn/jazz-avatar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jazz-avatar

Jazzy deterministic identicons for a more entertaining future.

example

Installation


npm i jazz-avatar -S

# or 

yarn add jazz-avatar

Usage


import jazzAvatar from "jazz-avatar";


// 使用base64方式
const base64 = jazzAvatar.getSvgBase64(100, seed || 0)
<img src={base64} />


// 创建 svg 
const svgEl = jazzAvatar.getSvg(100, seed || 0)
document.body.appendChild(svgEl)


// React 节点
export default ({ size, seed}: {size:number; seed?: number}) => {
    return jazzAvatar.getSvgEl(size, seed || 0)
}

About

Jazzy deterministic identicons for a more entertaining future.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published