UNPKG

@hey-api/json-schema-ref-parser

Version:

Parse, Resolve, and Dereference JSON Schema $ref pointers

9 lines (7 loc) 242 B
export default function convertPathToPosix(filePath: string): string { // Extended-length paths on Windows should not be converted if (filePath.startsWith('\\\\?\\')) { return filePath; } return filePath.replaceAll('\\', '/'); }