unikey
v1.1.0
Published
Unique key generator library
Downloads
6
Readme
UNIKEY
A library for unique code generation
Install
For npm:
npm i unikey
For yarn:
yarn add unikey
For pnpm:
pnpm add unikey
Usage
import unikey from 'unikey';
const key = unikey(); // enf5a8t9
// ...
With length
import unikey from 'unikey';
const key = unikey(16); // tcmd6gud23ga2f5p
// ...
With Options
import unikey from 'unikey';
const mixedKey = unikey(16, { case: 'mixed' }); // riQTUuoZ3iV9RQEH
const upperKey = unikey(16, { case: 'upper' }); // IAYNLQD8T3DJ63GR
// ...