@akijania/randomid-generator

1.0.3 • Public • Published

Random ID generator

Random ID Generator is a function that generates a long random string of letters and numbers. The function takes one argument "idLength" which will decide on the number of characters in ID.

Installing Random ID Generator

To install generator from npm, run:

npm install @akijania/randomid-generator

Example

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

console.log("random ID", randomID(5));

You should get a random string of 5 characters e.g. 8WkBH

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

console.log("random ID", randomID());

If you don't pass any parameter, you get a random string of 7 characters.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.31latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.31
1.0.21
1.0.12
1.0.01

Package Sidebar

Install

npm i @akijania/randomid-generator

Weekly Downloads

5

Version

1.0.3

License

MIT

Unpacked Size

1.29 kB

Total Files

3

Last publish

Collaborators

  • akijania