Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 336 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 336 Bytes

digity

Generate an n-digit code

Installation

$ npm install digity

Usage

// ESM
import { digit } from 'digity';

// CommonJS
const { digity } = require('digity');

const token = digity(6) // 6-digit random number

That's all.