@cfx-kit/wallet-avatar

中文文档
0.0.5发布于 2023/06/01TypeScriptESM + CJS近 30 天下载 3.1万

| Statements | Branches | Functions | Lines | | --------------------------- | ----------------------- | ------------------------- | ----------------- | | ![Statements](https://img.shields.io/badg

原始使用文档
文档目录6 节
  1. Overview 🧐
  2. Installation 📦
  3. npm
  4. yarn
  5. Demo
  6. Usage 📚
StatementsBranchesFunctionsLines
StatementsBranchesFunctionsLines

@cfx-kit/wallet-avatar

https://img.shields.io/npm/v/@cfx-kit/wallet-avatar https://img.shields.io/github/issues-raw/ssbarbee/@cfx-kit/wallet-avatar https://img.shields.io/npm/dw/@cfx-kit/wallet-avatar

🤡 A library for generate MetaMask avatars based on account address.

✨ For example, use the metamask account to generate an avatar. You can get the same avatar as metamask. Of course you don't have to use metamask account.

🤣 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.

Overview 🧐

The @cfx-kit/wallet-avatar library is a collection of functions that can help you generate the same avatar as metamask. Install it and look at its definition and you'll be up and running in no time.

example

Installation 📦

npm

npm install @cfx-kit/wallet-avatar

yarn

yarn add @cfx-kit/wallet-avatar

Demo

For React codesandbox/@cfx-kit/wallet-avatar

Usage 📚

import { generateAvatarURL } from '@cfx-kit/wallet-avatar';

const img = document.createElement('img')

img.src = generateAvatarURL('0x368d31aeB0aBc22E4a020B1ceba386089fc3aCc6')

document.body.appendChild(img)

版本与发布记录

@cfx-kit/wallet-avatar 共发布 14 个版本,首次发布于 2023/05/16;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.0.5latest2023/06/013 年前
0.0.5-beta-NjMxNDMzMTEybeta2023/06/013 年前
0.0.42023/05/233 年前
0.0.32023/05/183 年前
0.0.3-beta-ODI3NzQ5NTM12023/05/183 年前
0.0.2-beta-NjU5MjgyMjcz2023/05/173 年前

关于 @cfx-kit/wallet-avatar 的常见问题

@cfx-kit/wallet-avatar 是什么?

| Statements | Branches | Functions | Lines | | --------------------------- | ----------------------- | ------------------------- | ----------------- | | ![Statements](https://img.shields.io/badg

如何安装 @cfx-kit/wallet-avatar?

在项目目录运行 npm install @cfx-kit/wallet-avatar,或使用 pnpm add / yarn add / bun add。

@cfx-kit/wallet-avatar 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@cfx-kit/wallet-avatar 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@cfx-kit/wallet-avatar 可以商用吗?

@cfx-kit/wallet-avatar 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@cfx-kit/wallet-avatar 的下载量有多少?

根据 npm 官方下载统计,@cfx-kit/wallet-avatar 在 2026/10/10 – 2026/11/08 这 30 天内被下载 31,250 次,日均约 1,042 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cfx-kit/wallet-avatar 还在维护吗?

最新版本 0.0.5 发布于 2023/06/01(3 年前);至今共发布 14 个版本,其中过去 12 个月发布了 0 个;首次发布于 2023/05/16。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。