Skip to content

gavinning/passcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

passcode

生成短信验证码

Install

npm i @4a/passcode

Usage

import passcode from '@4a/passcode'
// or
const passcode = require('@4a/passcode').default

console.log(
    passcode()
)

console.log(
    passcode(4)
)

// 推荐4或6位
console.log(
    passcode(6)
)