Socket
Book a DemoInstallSign in
Socket

keymachine

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keymachine

Zero dependency, lightweight and simple key generator for the JS world

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
1
Created
Source

Keymachine

Zero dependency, lightweight and simple key generator for the JS world

Usage Fields

Keymachine works very well in cases such as automatically assigned Email passwords, private invitation codes, verification keys, automatic link creation, etc.

Installation

Npm:

npm install keymachine

Yarn:

yarn add keymachine

Browsers:

<script src="https://unpkg.com/keymachine@2.1.0/index.js"></script>

Example Usage


 /*
   Default configurations comes as:
   length: 24
   possibility: 'abcdefghijklmnopqrstuvwxyz0123456789'
   case: 'mixed'
 */

 // Calling the module (only if installed via npm or yarn)
 import keymachine from 'keymachine';

 /* with defaults */
 let randomKey = keymachine();

 /* with custom configurations */
 let randomKey = keymachine({ possibility: 'KJAUZNSO27AJSND', length: 18, case: 'upper' });

Keywords

key

FAQs

Package last updated on 09 Aug 2020

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.