Open vietaws opened 2 years ago
Hi there @vietaws , I think you meant to post an issue to this repo instead: https://github.com/novemberborn/ksuid
But getting ahead of that: https://nodejs.dev/learn/modern-asynchronous-javascript-with-async-and-await
Creation You can create a new instance synchronously:
const ksuidFromSync = KSUID.randomSync() Or asynchronously:
const ksuidFromAsync = await KSUID.random()