Constructors
constructor
- new UUID(input?: string | Buffer | UUID): UUID
-
Parameters
-
Optional input: string | Buffer | UUID
Properties
_bsontype
_bsontype: "UUID"
id
id: Buffer
Static cacheHexString
cacheHexString: boolean
Methods
equals
- equals(otherId: string | Buffer | UUID): boolean
-
Parameters
-
otherId: string | Buffer | UUID
Returns boolean
inspect
-
Returns string
toBinary
-
toHexString
- toHexString(includeDashes?: boolean): string
-
Parameters
-
Optional includeDashes: boolean
Returns string
Static createFromHexString
- createFromHexString(hexString: string): UUID
-
Parameters
Static generate
-
Returns Buffer
Static isValid
- isValid(input: string | Buffer | UUID): boolean
-
Parameters
-
input: string | Buffer | UUID
Returns boolean
A class representation of the BSON UUID type.