UNPKG

@cloud-copilot/iam-collect

Version:

Collect IAM information from AWS Accounts

16 lines 485 B
const characters = '0123456789abcdefghijklmnopqrstuvwxyz'; /** * Generates a random string of a given length * * @param length The length of the string you would like to generate * @returns */ export function randomCharacters(length = 5) { let result = ''; for (let i = 0; i < length; i++) { const randomIndex = Math.floor(Math.random() * characters.length); result += characters[randomIndex]; } return result; } //# sourceMappingURL=strings.js.map