randomize
This is a js library that can generate random string of length 10 by default.
const {randomize} = require('randomize')
randomize() //Xje039HD39V
To overide the default length, pass the optional length as parameter like .
randomize(5) //b4s2Y
randomize(3) //H3x
You may be wondering how ypu would randomize ypur own string, it's simple pass your string as second parameter
randomize(3, 'helo') //eho
randomize(5, 'Helo') //oHleH
randomize(null, 'Helo') //HleHhholeo