Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mirshko/jazzicon-ts
Typescript version of Jazzicon
https://github.com/mirshko/jazzicon-ts
ethereum identicons jazzicon typescript
Last synced: 7 days ago
JSON representation
Typescript version of Jazzicon
- Host: GitHub
- URL: https://github.com/mirshko/jazzicon-ts
- Owner: mirshko
- License: mit
- Created: 2021-08-19T09:19:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T14:50:36.000Z (11 months ago)
- Last Synced: 2024-11-02T12:11:48.534Z (14 days ago)
- Topics: ethereum, identicons, jazzicon, typescript
- Language: TypeScript
- Homepage:
- Size: 255 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# jazzicon-ts
[![npm](https://img.shields.io/npm/v/jazzicon-ts)](https://www.npmjs.com/package/jazzicon-ts) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/jazzicon-ts) ![NPM](https://img.shields.io/npm/l/jazzicon-ts)
Typescript version of Jazzicon from [danfinlay](https://github.com/danfinlay/jazzicon) based on improvements by [jmrossy](https://github.com/MetaMask/jazzicon).
## Usage
```ts
import jazzicon from 'jazzicon-ts';const address = '0x8B7B2b4F7A391b6f14A81221AE0920a9735B67Fc';
const identicon = jazzicon(64, parseInt(address.slice(2, 10), 16)
document.getElementById("#jazzicon").appendChild(identicon)
```