UNPKG

file-box

Version:

Pack a File into Box for easy move/transfer between servers no matter of where it is.(local path, remote url, or cloud storage)

16 lines 464 B
"use strict"; /** * Convert UUID to BigInt * @param uuid * @returns BigInt */ Object.defineProperty(exports, "__esModule", { value: true }); exports.uuidToBigInt = void 0; function uuidToBigInt(uuid) { // credit: https://stackoverflow.com/a/58014300/1123955 const hexBytes = `0x${uuid.replace(/-/g, '')}`; const bigInteger = BigInt(hexBytes); return bigInteger; } exports.uuidToBigInt = uuidToBigInt; //# sourceMappingURL=uuid-to-big-int.js.map