Generates a random string.
$ npm install @emiljohansson/random-string
import randomString from 'random-string'
randomString()
// => '1k59GeX6Nn'
Returns a random string.
Type: number
Optional length of the string. Default is 10.
Type: boolean
Includes alphabetical letters in the string. Default is true.
Type: boolean
Includes numbers in the string. Default is true.
Type: boolean
Includes special characters in the string. Default is false.
MIT © Emil Johansson