refactor method names

This commit is contained in:
2017-07-17 17:01:10 +02:00
parent 74b52173dd
commit d29fd78753
6 changed files with 76 additions and 13 deletions

View File

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