Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

io84-jazzicon

2.0.1 • Public • Published

Jazzicon

Jazzy Identicons

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 io84-jazzicon

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('./')
//or
//<script src="dist/io84-jazzicon.min.js"></script>
 
var body = document.querySelector('body')
for (var i = 0; i < 600; i++) {
    var icon = jazzicon(100, i)
    var img = document.createElement('img')
    img.src = icon
    body.appendChild(img)
}

Example

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

Install

npm i io84-jazzicon

DownloadsWeekly Downloads

1

Version

2.0.1

License

ISC

Unpacked Size

285 kB

Total Files

10

Last publish

Collaborators

  • avatar