PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/dts-bundle-generator/dist/helpers

Просмотр файла: get-absolute-path.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAbsolutePath = void 0;
const path = require("path");
const process = require("process");
const fix_path_1 = require("./fix-path");
function getAbsolutePath(fileName, cwd) {
    if (!path.isAbsolute(fileName)) {
        fileName = path.join(cwd !== undefined ? cwd : process.cwd(), fileName);
    }
    return (0, fix_path_1.fixPath)(fileName);
}
exports.getAbsolutePath = getAbsolutePath;

Выполнить команду


Для локальной разработки. Не используйте в интернете!