now working
This commit is contained in:
18
ts/index.ts
18
ts/index.ts
@ -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)
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user