You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add functions to generate secure and customizable IDs and numbers
This commit adds new functions to the '@astreak/unity' package that allow users to generate secure and customizable registration numbers, SKUs, order IDs, ticket IDs, tracking numbers, random strings, random numbers, random hex strings, random passwords, random tokens, and random IVs for encryption.
The new functions include:
- `generateRegistrationNumber(prefix: string, length: number, includeAlpha: boolean, includeNumeric: boolean): string`
- `generateSKU(prefix: string, length: number, includeAlpha: boolean, includeNumeric: boolean): string`
- `generateOrderID(prefix: string, length: number, includeAlpha: boolean, includeNumeric: boolean): string`
- `generateTicketID(prefix: string, length: number, includeAlpha: boolean, includeNumeric: boolean): string`
- `generateTrackingNumber(prefix: string, length: number, includeAlpha: boolean, includeNumeric: boolean): string`
- `generateRandomString(length: number): string`
- `generateRandomNumber(min: number, max: number): number`
- `generateRandomHex(length: number): string`
- `generateRandomPassword(length: number): string`
- `generateRandomToken(length: number): string`
- `generateRandomIV(): string`
These functions provide users with a convenient way to generate various types of secure and customizable IDs and numbers for their applications.
0 commit comments