@up24/guid
v2.0.0
Published
Lex sortable guid
Downloads
4
Readme
guid
Lex sortable ids (byte-string also)
Example
import { guid } from '@up24/guid'
console.log(guid())
// -LQuTbybEufyGGcekO0w-k
API
guid.guid()
Generate new id
guid.bufferToGuid(bytes: Buffer)
Convert Buffer object to lex sortable string
guid.guidToBuffer(str: string)
Convert guid to Buffer