nonce-generator Generates a random alphanumeric string of the given length. var nonce = require('nonce-generator'); console.log(nonce(5)); Would print a 5 character string such as rspci.