Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimascio authored Dec 27, 2022
1 parent 31a481e commit e518408
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ npm install uuid-mongodb
```javascript
const MUUID = require('uuid-mongodb');

# Create a v1 binary UUID
// Create a v1 binary UUID
const mUUID1 = MUUID.v1();

# Create a v4 binary UUID
// Create a v4 binary UUID
const mUUID4 = MUUID.v4();

# Print a string representation of a binary UUID
// Print a string representation of a binary UUID
mUUID1.toString()

# Create a binary UUID from a valid uuid string
// Create a binary UUID from a valid uuid string
const mUUID2 = MUUID.from('393967e0-8de1-11e8-9eb6-529269fb1459')

# Create a binary UUID from a MongoDb Binary
# This is useful to get MUUIDs helpful toString() method
// Create a binary UUID from a MongoDb Binary
// This is useful to get MUUIDs helpful toString() method
const mUUID3 = MUUID.from(/** MongoDb Binary of SUBTYPE_UUID */)
```

Expand Down

0 comments on commit e518408

Please sign in to comment.