linguist-js
Version:
Analyse the programming languages used in a folder or from raw content, using the same rules that GitHub Linguist does.
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;