@juliachan/randomid-generator
v1.0.1
Published
The first simples package implemented to generated random ID
Downloads
2
Readme
@juliachan/randomid-generator
The first simples package implemented to generated random ID
1. What Does it do?
The package creates a unique ID from numbers and letters. The user can specify the number of characters in the id
2. How to Use?
To implemented this Package follow the steps below.
2.1. Installation
Yarn
yarn add @juliachan/randomid-generator
NPM
npm install @juliachan/randomid-generator
2.2. Usage
require
const idGenerator = require('@juliachan/randomid-generator');
import
import idGenerator from '@juliachan/randomid-generator'
2.3. Call a function
idGenerator()
Creates a random string of 12 characters.
idGenerator(idLength)
Creates a random string of idLength number of characters.
3. Usage
This function is useful in generating random ID's for the objects.