@justinaz90/random-id-generator

Package for generating random IDs in any length. It can include uppercase letters, lowercase letters and numbers.

Usage no npm install needed!

<script type="module">
  import justinaz90RandomIdGenerator from 'https://cdn.skypack.dev/@justinaz90/random-id-generator';
</script>

README

General info

Package for generating random IDs in any length. It can include uppercase letters, lowercase letters and numbers.

Installation

$ yarn add @justinaz90/random-id-generator

or

$ npm install @justinaz90/random-id-generator

Usage

Create js file and import the package:

const randomID = require('@justinaz90/random-id-generator');

Define the length of generated ID through the method attribute

Example

randomID(10);
console.log(randomID(10)); // isfh7UK98h