smartstring/ts/smartstring.create.ts

14 lines
338 B
TypeScript
Raw Normal View History

2017-10-11 12:52:22 +00:00
import * as plugins from './smartstring.plugins'
export let createRandomString = (
patternArg: string,
lengthArg: number,
optionsArg: any
): string => {
return plugins.randomatic(patternArg, lengthArg, optionsArg)
}
export let createCryptoRandomString = (lengthArg): string => {
return plugins.cryptoRandomString(lengthArg)
}