Skip to content

randomstring

randomstring

randomstring is used to generate random alphanumeric strings.

It is useful for temporary passwords, tokens, or unique identifiers.

Generate a Random String

const str = modules.randomstring.generate(10)

Example Output

str → "a1b2c3d4e5"

Official Documentation

randomstring Docs