@pushrocks/smartstring
Version:
handle strings in smart ways. TypeScript ready.
19 lines (18 loc) • 553 B
TypeScript
/**
* creates a random string
*
* ```ts
* createRandomString('AAAA')
* //=> 'AGHR'
* ```
*
* @param patternArg the pattern argument to use, Aa0!* are viable pattern descritors
* @param lengthArg the length of the random string
* @param optionsArg options
*/
export declare const createRandomString: (patternArg: string, lengthArg?: number, optionsArg?: any) => string;
/**
* creates a crytic string in the speicifed length
* @param lengthArg the length of the crypto string
*/
export declare const createCryptoRandomString: () => string;