now working

This commit is contained in:
2017-07-14 18:53:10 +02:00
parent 9a1efb9940
commit 8f63394641
9 changed files with 480 additions and 3 deletions

View File

@ -1 +1,19 @@
import * as plugins from './smartunique.plugins'
/**
* returns short strings that are unique to very high degree od certainty
*/
export let getShortId = (): string => {
return plugins.shortid.generate()
}
/**
* returns strings that are unique to a very high degree of certainty
*/
export let getUuidv4 = (): string => {
return plugins.uuidv4()
}
export let getUuidv5 = (customStringArg: string, namespaceArg = plugins.uuidv5.DNS): string => {
return plugins.uuidv5(customStringArg, namespaceArg)
}

View File

@ -1 +1,11 @@
import 'typings-global'
import * as shortid from 'shortid'
import * as uuidv4 from 'uuid/v4'
import * as uuidv5 from 'uuid/v5'
export {
shortid,
uuidv4,
uuidv5
}