@4a/passcode

短信验证码

Usage no npm install needed!

<script type="module">
  import 4aPasscode from 'https://cdn.skypack.dev/@4a/passcode';
</script>

README

passcode

生成短信验证码

Install

npm i @4a/passcode

Usage

const passcode = require('@4a/passcode')

console.log(
    passcode()
)

console.log(
    passcode(4)
)

// 最大支持6位
console.log(
    passcode(6)
)