get-random-string
A small JavaScript library for generating random string
- All browsers are supported
- Regex included
Installation
npm
npm i get-random-string --save
var getRandomString = ;
Usage
;/* Result: BQ&8Yv_9 */ ; //lenght (default: 8)/* Result: oO9_HOIpN_ */ ; //lenght and custom chars/* Result: cabbbbccab */ getRandomString;/* Result: %OBuhV)v1R */ ;/* Result: lryebyuaxv */ ;/* Result: VGRRGGZOLH */ ;/* Result: 2505362904 */ ;/* Result: -%(#_!+#-% */ ;/* Result: 9PxqP!j(Cw */ /* Result: X6iz7cY