add create module
This commit is contained in:
13
ts/smartstring.create.ts
Normal file
13
ts/smartstring.create.ts
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user