-
-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose bytes to uuid #180
Comments
No, this isn't something I expect will ever be part of the public API. That said, |
Would it be possible to reconsider this? With native ES module support in Node, the "deep" import no longer works at all. It'd be convenient to have a general-purpose way to convert a Node buffer with the bytes for a UUID into the standard hex representation, and using the As a comparison, the |
The absence of an exposed |
We're currently considering to extend the API surface of this library (#455 (comment)), thank you for bringing up that use case. We'll definitely discuss this! |
@wesleytodd @taion we have just released |
Added in #479 |
Passes our test suite. I'll deploy shortly, but I don't expect any problems. Will let you know if anything comes up, but assume it's working fine for us unless you hear otherwise. |
Closing. @taion, please comment here if you have any issues and we'll reopen, or just open a new issue. Thanks for the input! |
We have just released |
Thanks! |
Do you have any interest in exposing the lib method
bytesToUuid
?Usecase: I am writing two uuid's to a buffer which I am hex encoding for use in a http header, but when I decode them, I would like to store are traditional string representation in the
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
format.It would be nice to do something like:
Maybe there is another way to do this that I don't know about, so let me know if that is the case. Otherwise I can submit a PR to expose it.
The text was updated successfully, but these errors were encountered: