smartstring/ts/smartstring.create.ts
2017-10-26 15:24:10 +02:00

14 lines
342 B
TypeScript

import * as plugins from './smartstring.plugins'
export const createRandomString = (
patternArg: string,
lengthArg: number,
optionsArg: any
): string => {
return plugins.randomatic(patternArg, lengthArg, optionsArg)
}
export const createCryptoRandomString = (lengthArg): string => {
return plugins.cryptoRandomString(lengthArg)
}