UNPKG

lisk-framework

Version:

Lisk blockchain application platform

14 lines 526 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPathFromDataPath = void 0; const os_1 = require("os"); const path = require("path"); const getPathFromDataPath = (filePath, dataPath) => { const pathWithoutTilda = filePath.replace('~', (0, os_1.homedir)()); if (path.isAbsolute(pathWithoutTilda)) { return pathWithoutTilda; } return path.resolve(path.join(dataPath, filePath)); }; exports.getPathFromDataPath = getPathFromDataPath; //# sourceMappingURL=path.js.map