10 lines
223 B
TypeScript
10 lines
223 B
TypeScript
import crs from 'crypto-random-string'
|
|
|
|
export function createRandomEmail() {
|
|
return `${crs({ length: 6 })}@example.org`
|
|
}
|
|
|
|
export function createRandomPassword(length?: number) {
|
|
return crs({ length: length ?? 10 })
|
|
}
|