Package Exports
- rndm
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rndm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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.