Skip to content

mirshko/jazzicon-ts

Repository files navigation

jazzicon-ts

npm npm bundle size NPM

Typescript version of Jazzicon from danfinlay based on improvements by jmrossy.

Usage

import jazzicon from 'jazzicon-ts';

const address = '0x8B7B2b4F7A391b6f14A81221AE0920a9735B67Fc';

const identicon = jazzicon(64, parseInt(address.slice(2, 10), 16)

document.getElementById("#jazzicon").appendChild(identicon)