2.0.0 • Published 6 years ago

@up24/guid v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

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

2.0.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago