Optional options: { Optional exclude?: string[]Letters / Symbols that shouldnt be included
[]
1.0.0
Optional lowercase?: booleanWhether Lowercase Letters should be included
true
1.0.0
Optional numbers?: booleanWhether Numbers should be included
true
1.0.0
Optional symbols?: booleanWhether Symbols should be included
false
1.0.0
Optional uppercase?: booleanWhether Uppercase Letters should be included
true
1.0.0
import { string } from "@rjweb/utils"
string.generateSegments([2, 5, 3], '-', { numbers: true, ... }) // dK-4Rflk-jGb
1.0.0
nodejs, browser
Generate a String with Random Segments