🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-jazzicon

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-jazzicon

React component for danfinlay/jazzicon

1.0.4
latest
Source
npm
Version published
Weekly downloads
14K
14.37%
Maintainers
1
Weekly downloads
 
Created
Source

react-jazzicon

NPM version License Known Vulnerabilities Downloads

This is a react component for Dan Finlay's jazzicon.

usage

import Jazzicon from 'react-jazzicon'

export default function App(){

  …

  return (
    <Jazzicon diameter={100} seed={Math.round(Math.random() * 10000000)} />
  )
}

for Ethereum addresses

import Jazzicon, { jsNumberForAddress } from 'react-jazzicon'

export default function App () {

  …

  return (
    <Jazzicon diameter={100} seed={jsNumberForAddress('0x1111111111111111111111111111111111111111')} />
  )
}

setup

$ git clone https://github.com/marcusmolchany/react-jazzicon
$ cd react-jazzicon
$ yarn # or npm i

storybooks

the storybooks github pages are hosted from the /docs directory on the gh-pages branch.

run the storybooks locally by running the following commands:

$ yarn # or npm i
$ yarn storybooks # or npm run storybooks

Keywords

jazzicon

FAQs

Package last updated on 10 Jun 2022

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