Adds the Nil UUID as a constant to the module exports. #236
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This seems kinda trivial, but I had an occasion a few weeks ago where I needed the NIL UUID value obviously this is easy enough to just define as a constant. But I thought that it would have been included as part of this package and was surprised not to find it as it's part of the UUID specification. However when I went to add it to node-uuid I initially thought to add it in the same way that the v5 includes the DNS and URL namespaces. However the NIL uuid is categorically different and should really be included with all versions 1, 3, 4 & 5.
I considered centralizing the definition but the overhead of a require just for a static constant seemed a bit much.
If this implementation is alright, I'd like to update the docs with this PR.
Please let me know what you think.