linguist-js
Version:
Analyse languages used in a folder. Powered by GitHub Linguist, although it doesn't need to be installed.
16 lines (15 loc) • 648 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.normAbsPath = exports.normPath = void 0;
const path_1 = __importDefault(require("path"));
const normPath = function normalisedPath(...inputPaths) {
return path_1.default.join(...inputPaths).replace(/\\/g, '/');
};
exports.normPath = normPath;
const normAbsPath = function normalisedAbsolutePath(...inputPaths) {
return path_1.default.resolve(...inputPaths).replace(/\\/g, '/');
};
exports.normAbsPath = normAbsPath;