1.1.4 • Published 4 years ago

@magdalenaromanowska/randomid-generator v1.1.4

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

General info

  • Random ID generator module that creates by default 10-digits ID (mixed letters and numbers).
  • One can change amount of digits by giving the number in:
randomID();

for example

randomID(25);

Installation

  • With yarn:
yarn add @magdalenaromanowska/randomid-generator
  • With npm:
npm i @magdalenaromanowska/randomid-generator

Usage

Import in file:

const randomID = require('@magdalenaromanowska/randomid-generator');

And then for example:

console.log(randomID());

it will give 10-digits ID.

console.log(randomID(2));

it will give 2-digits ID.

console.log(randomID(35));

it will give 35-digits ID.

Examples of 10-digits ID:

  • zmHsXOmtqN,
  • ImfrtZ98Se,
  • ysNRKjjgdS.
1.1.4

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.3

4 years ago

1.0.4

4 years ago

1.1.2

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago