unikey
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

// ...

Readme

Keywords

none

Package Sidebar

Install

npm i unikey

Weekly Downloads

7

Version

1.1.0

License

MIT

Unpacked Size

2.74 kB

Total Files

4

Last publish

Collaborators

  • npm-marcopitra