class Uuid
Represents an immutable universally unique identifier (UUID). A UUID represents a 128-bit value.
Constructor
Uuid
(Buffer
buffer)
Creates a new instance of Uuid based on a Buffer
Methods
equals
(Uuid
other)
Compares this object to the specified object. The result is true if and only if the argument is not null, is a UUID object, and contains the same value, bit for bit, as this UUID.
Uuid.fromString
(String
value)
Parses a string representation of a Uuid
- Static
- This function is static
getBuffer
()Gets the bytes representation of a Uuid
inspect
()Provide the name of the constructor and the string representation
Uuid.random
([function
callback])
Creates a new random (version 4) Uuid.
- Static
- This function is static
toJSON
()Returns the string representation. Method used by the native JSON.stringify() to serialize this instance.
toString
()Returns a string representation of the value of this Uuid instance. 32 hex separated by hyphens, in the form of 00000000-0000-0000-0000-000000000000.