numeric-code

Return random numeric string with specify length (default to six)

Usage no npm install needed!

<script type="module">
  import numericCode from 'https://cdn.skypack.dev/numeric-code';
</script>

README

numericCode

Return random numeric string with specify length (default to six)

Usage: numericCode(size?: number): string

import { numericCode } from 'numeric-code'

numericCode(10)
// Output random numeric string with length of 10 characters
numericCode() // default size is six
// Output random numeric string with length of 6 characters

This module exported from utilizes project.