chore(version): bump version

This commit is contained in:
Mauricio Siu
2024-10-30 21:48:19 -06:00
parent 97715a47b3
commit 6c92e6efc9
17 changed files with 14 additions and 31 deletions

View File

@@ -35,9 +35,15 @@ export const generateHash = (projectName: string, quantity = 3): string => {
};
export const generatePassword = (quantity = 16): string => {
return randomBytes(Math.ceil(quantity / 2))
.toString("hex")
.slice(0, quantity);
const characters =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
let password = "";
for (let i = 0; i < quantity; i++) {
password += characters.charAt(
Math.floor(Math.random() * characters.length),
);
}
return password;
};
export const generateBase64 = (bytes = 32): string => {