MCPcopy
hub / github.com/TylerBrock/mongo-hacker / uuidToString

Function uuidToString

hacks/uuid.js:78–83  ·  view source on GitHub ↗
(uuid, uuidType)

Source from the content-addressed store, hash-verified

76}
77
78function uuidToString(uuid, uuidType) {
79 var uuidType = uuidType || mongo_hacker_config['uuid_type'];
80 var hex = platformSpecificUuidModifications[uuidType](base64ToHex(uuid.base64()));
81 return hex.substr(0, 8) + '-' + hex.substr(8, 4) + '-' + hex.substr(12, 4)
82 + '-' + hex.substr(16, 4) + '-' + hex.substr(20, 12);
83}

Callers 1

common.jsFile · 0.85

Calls 1

base64ToHexFunction · 0.85

Tested by

no test coverage detected