@up24/guid
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @up24/guid

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

8.77 kB

Total Files

9

Last publish

Collaborators

  • snosme