randumb

Generate a random alphanumeric ASCII character string

generate a random ASCII character string

npm install randumb

var randumb = require('randumb');
 
console.log(randumb());
console.log(randumb(5));
console.log(randumb(10, false));

randumb(charLen, startWithNumber)

  1. charLen: character length (default is 10)
  2. startWithNumber: can the String start with a number? (default is true)