Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
increased by50%
Maintainers
1
Weekly downloads
 
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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc