Sha256: b2b38787a3e4e3299792a5129c47c845497a33db258618cb8f7bb003d9413e56
Contents?: true
Size: 532 Bytes
Versions: 17
Compression:
Stored size: 532 Bytes
Contents
# 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 ```js // 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.
Version data entries
17 entries across 17 versions & 2 rubygems