pin-generator
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

pin-generator

A simple JavaScript utilty library to generate random pin codes.

Installation

$ yarn add pin-generator

# or

$ npm install pin-generator

Usage

import generatePin from "pin-generator";

generatePin(); // returns a 4-digit pin

You can also specify the number of digits you want by calling the generatePin method with an argument

generatePin(6); // 6-digit pin

License

MIT © Eyuel Berga

Dependencies (0)

    Dev Dependencies (9)

    Package Sidebar

    Install

    npm i pin-generator

    Weekly Downloads

    4

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.37 kB

    Total Files

    5

    Last publish

    Collaborators

    • eyuelberga