Socket
Socket
Sign inDemoInstall

rndm

Package Overview
Dependencies
0
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rndm

random string generator


Version published
Weekly downloads
612K
decreased by-0.83%
Maintainers
4
Install size
3.83 kB
Created
Weekly downloads
 

Readme

Source

RNDM

Random string generator. Basically Math.random().toString(36).slice(2), but with both upper and lower case letters and arbitrary lengths. Useful for creating fast, not cryptographically secure salts.

API

// base62 by default
var rndm = require('rndm')
var salt = rndm(16)

var salt = rndm(length)

var salt = rndm.base62(length)

var salt = rndm.base36(length)

var salt = rndm.base10(length)

var random = rndm.create(characters)

Create a new random generator with custom characters.

Keywords

FAQs

Last updated on 27 Oct 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc