add create module

This commit is contained in:
2017-10-11 14:52:22 +02:00
parent 83279a9c19
commit 099bf9b270
16 changed files with 79 additions and 8 deletions

13
ts/smartstring.create.ts Normal file
View File

@ -0,0 +1,13 @@
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)
}