1.0.1 • Published 3 years ago
@pawel-mat/randomid-generator v1.0.1
id-generator
This paskage generates a unique ID from random characters.
Install
npm install @pawel-mat/id-generator
or
yarn add @pawel-mat/id-generator
Usage
Import the package :
import randomID from '@pawel-mat/id-generator';
or
const randomID = require('@pawel-mat/id-generator');
You can now define the length of generated ID through the method attribute.
example:
randomID(10);
console.log(randomID(10)); // cw5SuwIWzk