numeric-code
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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.

Package Sidebar

Install

npm i numeric-code

Weekly Downloads

6

Version

1.0.4

License

MIT

Unpacked Size

55.7 kB

Total Files

5

Last publish

Collaborators

  • natqe3