Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

unikey

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unikey

Unique key generator library

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

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

// ...

FAQs

Package last updated on 28 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts