We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e101bc2 commit a7d8517Copy full SHA for a7d8517
README.md
@@ -38,6 +38,19 @@ const mUUID2 = MUUID.from('393967e0-8de1-11e8-9eb6-529269fb1459')
38
const mUUID3 = MUUID.from(/** MongoDb Binary of SUBTYPE_UUID */)
39
```
40
41
+## Modes
42
+
43
+uuid-mongodb offers two modes, **canonical** (default) and **relaxed**.
44
45
+- **canonical** - A string format that emphasizes type preservation at the expense of readability and interoperability.
46
+- **relaxed** - A string format that emphasizes readability and interoperability at the expense of type preservation.
47
48
+Modes are set globally. here is how set the mode
49
50
+```javascript
51
+const mUUID = MUUID.mode('relaxed')
52
+```
53
54
## Formatting
55
56
UUIDs may be formatted using the following options:
0 commit comments