npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cute-nickname

v1.1.0-beta.1

Published

随机生成可爱俏皮的中文昵称,例如 '小土豆' or '软布丁'

Downloads

45

Readme

🥔 cute-nickname

一键生成超可爱的中文昵称,比如 小土豆软布丁毛茸茸团子可爱猪猪……
适用于游戏、社交 App、社区用户名、节日活动等场景,萌力全开!✨

npm version
npm downloads
License

import { generateCuteNickname } from "cute-nickname";

console.log(generateCuteNickname({ withEmoji: true }));
// → 小土豆 🥔
// → 软布丁 🍮
// → 毛茸茸团子 ⚔️

📦 安装

npm install cute-nickname

✅ 内置 TypeScript 类型定义,无需额外配置!


🚀 快速使用

基础用法

import { generateCuteNickname } from "cute-nickname";

const nickname = generateCuteNickname();
console.log(nickname); // 例如:"小土豆"、"云朵团子"、"魔法奶酪"

添加 Emoji

const nickname = generateCuteNickname({ withEmoji: true });
console.log(nickname); // 例如:"软布丁 🍮"、"小剑客 ⚔️"

自定义词库(v1.1+)

const gameWords = {
  prefixes: ["脆皮", "野王", "超神"],
  suffixes: ["ADC", "打野", "五杀"],
};

const nickname = generateCuteNickname({
  wordList: gameWords,
  withEmoji: true,
});
// → 脆皮ADC ⚔️

所有选项

generateCuteNickname({
  withEmoji: false, // 是否附加 emoji(默认:false)
  allowReduplication: true, // 是否允许叠词,如 "土豆土豆"(默认:true)
  forcePrefix: false, // 是否强制加前缀(默认:false)
  wordList: undefined, // 自定义词库(可选)
});

🧩 API 说明

generateCuteNickname(options?)

| 参数 | 类型 | 默认值 | 说明 | | ------------------ | ------------------------------------------ | -------- | -------------------------------------------------- | | withEmoji | boolean | false | 在昵称末尾添加一个随机 emoji | | allowReduplication | boolean | true | 允许约 5% 概率生成叠词(如 "土豆土豆") | | forcePrefix | boolean | false | 强制使用前缀(否则有 25% 概率为纯后缀,如 "布丁") | | wordList | { prefixes: string[], suffixes: string[] } | 内置词库 | 自定义前缀/后缀词库 |

💡 提示:内置词库已覆盖食物、小动物、自然、魔法、武侠、仙侠、办公室、游戏等多个可爱化领域!


🧪 示例场景

| 场景 | 代码 | 输出示例 | | ------------- | ----------------------------------------------- | -------------------- | | 社交 App 昵称 | generateCuteNickname() | 小蘑菇、糯糍粑 | | 游戏角色名 | generateCuteNickname({ withEmoji: true }) | 奶辅助 ❤️、呆打野 🐾 | | 企业内部工具 | generateCuteNickname({ wordList: officeWords }) | 摸鱼 PPT、小键盘 |


🌟 特性

✓ 开箱即用:默认词库丰富,风格统一可爱
✓ 高度可定制:支持完全自定义词库
✓ 类型安全:完整 TypeScript 支持
✓ 轻量无依赖:仅 ~5KB,无第三方依赖
✓ 支持叠词 & Emoji:增加趣味性和辨识度


🤝 贡献

欢迎提交 Issue 或 Pull Request!

开发流程:

git clone https://github.com/muyu66/cute-nickname.git
cd cute-nickname
npm install
npm test          # 运行测试
npm run build     # 构建产物

请确保新增词汇符合“可爱风格”(柔软、无害、温暖、萌系)。


📄 许可证

MIT © zhuzhu


让世界多一点可爱 🌈

由 zhuzhu 倾情制作 💖