Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ethereum-blockies-png

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethereum-blockies-png

A tiny library for generating blocky identicons.

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Ethereum Blockies PNG

npm version Downloads

A tiny library for generating Ethereum-variant of blocky identicons, in PNG format.

Sample blockies image

Use

const blockies = require('ethereum-blockies-png')
const fs = require('fs')

// Generate a PNG binary
const buffer = blockies.createBuffer({ // All options are optional
  seed: '0x00d1f07af5501156a3dc81ed93f9eebd81d3e472', // ethereum address
  scale: 4  // width/height of each block in pixels, default: 4
})
fs.writeFileSync('out.png', b)

// or generate a Data URL:
const dataURL = blockies.createDataURL({ seed: '0x00d1f07af5501156a3dc81ed93f9eebd81d3e472' })
// => "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgC..."

License

WTFPL

FAQs

Package last updated on 11 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc