randomstring

A module for generating random strings

node-randomstring

To install randomstring, use npm:

npm install randomstring
var randomstring = require("randomstring");
 
randomstring.generate();
// >> "XwPp9xazJ0ku5CZnlmgAx2Dld8SHkAeT" 
 
randomstring.generate(7);
// >> "xqm5wXX" 
npm install
npm test

node-randomstring is licensed under the MIT license.