1.0.1 • Published 3 years ago

@pawel-mat/randomid-generator v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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