UNPKG

react-native-uuid

Version:

react-native-uuid is a zero-dependency TypeScript implementation of RFC4122.

12 lines 368 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.version = void 0; const validate_1 = require("./validate"); const version = (uuid) => { if (!validate_1.validate(uuid)) { throw TypeError('Invalid UUID'); } return parseInt(uuid.substr(14, 1), 16); }; exports.version = version; //# sourceMappingURL=version.js.map