Skip to content

A library to generate unique keys, with great performance

Notifications You must be signed in to change notification settings

git-marcopitra/unikey

Repository files navigation

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

// ...

About

A library to generate unique keys, with great performance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published