1.3.0 • Published 8 months ago

@interest-protocol/tokens v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@interest-protocol/tokens

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

// ...