@metamask/jazzicon

2.0.0 • Public • Published

Jazzicon

Jazzy Identicons

Live Example

Say goodbye to boring blocky identicons that look like they came out of the 70s, and replace them with jazzy, colorful collages that more likely came out of the 80's.

example

Installation

npm install jazzicon -S

Usage

Takes a pixel diameter and a javascript integer (seeds the shape), and gives you back a DOM element to use as you wish!

var jazzicon = require('jazzicon')

var body = document.querySelector('body')
for(var i = 0; i < 60; i++) {
  var el = jazzicon(100, Math.round(Math.random() * 10000000))
  body.appendChild(el)
}

Example

You can run an example by installing beefy (npm i -g beefy) and then running npm run sample.

Readme

Keywords

Package Sidebar

Install

npm i @metamask/jazzicon

Weekly Downloads

18,056

Version

2.0.0

License

ISC

Unpacked Size

5.87 kB

Total Files

8

Last publish

Collaborators

  • mcmire
  • nicholasellul
  • naugtur
  • ritave
  • danfinlay
  • kumavis
  • rekmarks
  • metamaskbot
  • gudahtt
  • sethkfman