UNPKG

@sasjs/cli

Version:

Command line interface for SASjs

14 lines (13 loc) 593 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizeFilePath = void 0; var utils_1 = require("@sasjs/utils"); var path_1 = __importDefault(require("path")); var normalizeFilePath = function (filePath) { var pathSepRegExp = new RegExp(path_1.default.sep.replace(/\\/g, '\\\\'), 'g'); return (0, utils_1.getRealPath)(filePath).replace(pathSepRegExp, '/'); }; exports.normalizeFilePath = normalizeFilePath;