This commit is contained in:
Iliyan Angelov
2025-09-14 23:24:25 +03:00
commit c67067a2a4
71311 changed files with 6800714 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
/**
* Replaces backslashes with one forward slash
* @param input
*/
declare function forwardSlash(input: string): string;
export default forwardSlash;

View File

@@ -0,0 +1,14 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = __importDefault(require("path"));
/**
* Replaces backslashes with one forward slash
* @param input
*/
function forwardSlash(input) {
return path_1.default.normalize(input).replace(/\\+/g, '/');
}
exports.default = forwardSlash;