UNPKG

@levabala/react-native-uuid

Version:

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

30 lines 789 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.unparse = void 0; const utils_1 = require("./utils"); // **`unparse()` - Convert UUID byte array (ala parse()) into a string** exports.unparse = (buf, offset) => { let i = offset || 0; let bth = utils_1.byteToHex; return (bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]]); }; //# sourceMappingURL=unparse.js.map