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

@fuxishi/random-nickname

v1.0.2

Published

随机昵称生成器

Readme

随机昵称生成器

随机生成昵称 由于业务需求 寻找 npm 依赖的时候找不到中文版本的昵称生成器 所以自己写了一个 支持 require 以及 import 支持 ts

安装

npm install @fuxishi/random-nickname

使用

随机生成昵称

import { rName, generateNickName } from "@fuxishi/random-nickname";
// 随机生成昵称
console.log(rName.nickname("l_cl_cr_r")); // 输出: ⓻内侧🀣的°矮牵牛🀑
// 或
console.log(generateNickName("l_cl_cr_r"));

随机生成单词

import { rName, generateWord } from "@fuxishi/random-nickname";
// 随机生成单词
console.log(rName.word()); // 输出: 漱口水
// 或
console.log(generateWord());

随机生成形容词

import { rName, generateAdjective } from "@fuxishi/random-nickname";
// 随机生成形容词
console.log(rName.generateAdjective()); // 输出: 勤奋
console.log(generateAdjective());
console.log(generateAdjective("qualityPersonality"));

随机生成名词

generateNoun

随机生成特殊符号

generateSpecialSymbol

输出全部形容词

import { adjective } from "@fuxishi/random-nickname";
console.log(adjective);
// 或者adjective[key]

输出全部名词

noun

输出全部特殊符号

新增随机生成密码

// 生成 8 位默认模式密码(数字+大小写字母)
const pwd1 = randowPwd(8);
console.log("🚀 ~ pwd1:", pwd1);

// 生成 12 位包含所有字符类型的密码
const pwd2 = randowPwd(12, ["number", "lowercase", "uppercase", "character"]);
console.log("🚀 ~ pwd2:", pwd2);

// 生成 6 位默认长度密码(使用默认长度 6)
const pwd3 = randowPwd();
console.log("🚀 ~ pwd3:", pwd3);

// 生成 10 位纯特殊字符密码
const pwd4 = randowPwd(10, ["character"]);
console.log("🚀 ~ pwd4:", pwd4);

// console.log(randowPwd(0)); 抛出错误

// console.log(randowPwd(8, ["invalid"])); 抛出错误

// 空模式数组(使用默认模式)
console.log(randowPwd(8, []));
// 未传入任何参数 默认长度6 默认模式
console.log(randowPwd());

如遇到错误或什么问题 可邮箱[email protected]联系