UNPKG
@hey-api/json-schema-ref-parser
Version:
latest (1.3.1)
next (0.0.0-next-20260223231818)
1.3.1
1.3.0
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
0.0.2
0.0.1
0.0.0-next-20260223231818
0.0.0-next-20260223201612
0.0.0-next-20260223100743
0.0.0-next-20260223091437
0.0.0-next-20260223015209
0.0.0-next-20260223010025
0.0.0-next-20260221025643
0.0.0-next-20260220173109
0.0.0-next-20260220094452
0.0.0-next-20260213065111
0.0.0-next-20260213015103
0.0.0-next-20260213013734
0.0.0-next-20260213012904
0.0.0-next-20260213002501
0.0.0-next-20260212233220
0.0.0-next-20260212230650
Parse, Resolve, and Dereference JSON Schema $ref pointers
heyapi.dev
hey-api/openapi-ts
@hey-api/json-schema-ref-parser
/
src
/
util
/
convert-path-to-posix.ts
9 lines
(7 loc)
•
242 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
export
default
function
convertPathToPosix
(
filePath
:
string
):
string
{
// Extended-length paths on Windows should not be converted
if
(filePath.
startsWith
(
'\\\\?\\'
)) {
return
filePath; }
return
filePath.
replaceAll
(
'\\'
,
'/'
); }