Skip to content

lonewolfyx/web-random-utils

Repository files navigation

📦 Install

npm install web-random-utils -D

🪄 Usage

// ESM
import {randomNumber, randomPassword} from 'web-random-utils';

// 随机数值
randomNumber() // 654
randomNumber(2, 500) // 300

生成密码
randomPassword() // u^u;4#9%Kw8{q[cF
randomPassword(12, 'low') //WHnocjIPgrBzRJdQ
randomPassword(12, 'medium') //aItjlvn1mIVm0PLz
randomPassword(12, 'strong') //+3Mm9EP<zJGNTu/Y

About

一款常用的随机工具库

Resources

Stars

Watchers

Forks

Packages

No packages published