UNPKG

@expo/fingerprint

Version:

A library to generate a fingerprint from a React Native project

16 lines (15 loc) 567 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = readFingerprintFileAsync; const promises_1 = __importDefault(require("fs/promises")); async function readFingerprintFileAsync(path) { try { return JSON.parse(await promises_1.default.readFile(path, 'utf-8')); } catch (e) { throw new Error(`Unable to read fingerprint file ${path}: ${e.message}`); } }