UNPKG

recoder-code

Version:

🚀 AI-powered development platform - Chat with 32+ models, build projects, automate workflows. Free models included!

12 lines (8 loc) • 284 B
import path from "path"; export default function convertPathToPosix(filePath: string) { const isExtendedLengthPath = filePath.startsWith("\\\\?\\"); if (isExtendedLengthPath) { return filePath; } return filePath.split(path?.win32?.sep).join(path?.posix?.sep ?? "/"); }