Auto-generated from test results by doc-reporter.ts. Do not edit manually.
Note: Node.js compatibility tests (200+ vectors in node-compat.test.ts) are excluded from this document for brevity. Those tests verify that every proxied path function produces identical results to Node.js built-in path.
| Input | Output |
|---|
"myfile/addExt", 'js' | "myfile/addExt.js" |
"myfile/addExt.txt", 'js' | "myfile/addExt.txt.js" |
"myfile/addExt.js", 'js' | "myfile/addExt.js" |
"myfile/addExt.min.", 'js' | "myfile/addExt.min..js" |
| Input | Output |
|---|
"myfile/addExt" | unchanged |
"myfile/addExt.txt" | unchanged |
"myfile/addExt.js" | unchanged |
"myfile/addExt.min." | unchanged |
| Input | Output |
|---|
"my/trimedExt.txt" | "my/trimedExt" |
"my/trimedExt" | "my/trimedExt" |
"my/trimedExt.min" | "my/trimedExt" |
"my/trimedExt.min.js" | "my/trimedExt.min" |
"../my/trimedExt.longExt" | "../my/trimedExt.longExt" |
| Input | Output |
|---|
"my/trimedExt.txt", ['min', '.dev'], 8 | "my/trimedExt" |
"my/trimedExt.min", ['min', '.dev'], 8 | "my/trimedExt.min" |
"my/trimedExt.dev", ['min', '.dev'], 8 | "my/trimedExt.dev" |
"../my/trimedExt.longExt", ['min', '.dev'], 8 | "../my/trimedExt" |
"../my/trimedExt.longRExt", ['min', '.dev'], 8 | "../my/trimedExt.longRExt" |
| Input | Output |
|---|
"removedExt.js", '.js' | "removedExt" |
"removedExt.txt.js", '.js' | "removedExt.txt" |
"notRemoved.txt", '.js' | "notRemoved.txt" |
| Input | Output |
|---|
"removedExt.longExt", '.longExt' | "removedExt" |
"removedExt.txt.longExt", '.longExt' | "removedExt.txt" |
"notRemoved.txt", '.longExt' | "notRemoved.txt" |
| Input | Output |
|---|
"my/module.min", '.js' | "my/module.js" |
"my/module.coffee", '.js' | "my/module.js" |
"my/module", '.js' | "my/module.js" |
"file/withDot.", '.js' | "file/withDot.js" |
"file/change.longExt", '.js' | "file/change.longExt.js" |
| Input | Output |
|---|
"my/module.min" | "my/module" |
"my/module.coffee" | "my/module" |
"my/module" | "my/module" |
"file/withDot." | "file/withDot" |
"file/change.longExt" | "file/change.longExt" |
| Input | Output |
|---|
"my/module.coffee", 'js', ['min', 'dev'], 8 | "my/module.js" |
"file/notValidExt.min", 'js', ['min', 'dev'], 8 | "file/notValidExt.min.js" |
"file/notValidExt.dev", 'js', ['min', 'dev'], 8 | "file/notValidExt.dev.js" |
"file/change.longExt", 'js', ['min', 'dev'], 8 | "file/change.js" |
"file/change.longRExt", 'js', ['min', 'dev'], 8 | "file/change.longRExt.js" |
| Input | Output |
|---|
"fileWith/defaultExt", 'js' | "fileWith/defaultExt.js" |
"fileWith/defaultExt.js", 'js' | "fileWith/defaultExt.js" |
"fileWith/defaultExt.min", 'js' | "fileWith/defaultExt.min" |
"fileWith/defaultExt.longExt", 'js' | "fileWith/defaultExt.longExt.js" |
| Input | Output |
|---|
"fileWith/defaultExt" | unchanged |
"fileWith/defaultExt.js" | unchanged |
"fileWith/defaultExt.min" | unchanged |
"fileWith/defaultExt.longExt" | unchanged |
| Input | Output |
|---|
"fileWith/defaultExt", 'js', ['min', '.dev'], 8 | "fileWith/defaultExt.js" |
"fileWith/defaultExt.min", 'js', ['min', '.dev'], 8 | "fileWith/defaultExt.min.js" |
"fileWith/defaultExt.dev", 'js', ['min', '.dev'], 8 | "fileWith/defaultExt.dev.js" |
"fileWith/defaultExt.longExt", 'js', ['min', '.dev'], 8 | "fileWith/defaultExt.longExt" |
"fileWith/defaultExt.longRext", 'js', ['min', '.dev'], 8 | "fileWith/defaultExt.longRext.js" |
| Input | Output |
|---|
"" | "." |
"." | "." |
"./" | "./" |
".//" | "./" |
".\\" | "./" |
".\\//" | "./" |
"./.." | ".." |
".//.." | ".." |
"./../" | "../" |
".\\..\\" | "../" |
"./../dep" | "../dep" |
"../dep" | "../dep" |
"../path/dep" | "../path/dep" |
"../path/../dep" | "../dep" |
"dep" | "dep" |
"path//dep" | "path/dep" |
| Input | Output |
|---|
"./dep" | "./dep" |
"./path/dep" | "./path/dep" |
"./path/../dep" | "./dep" |
".//windows\\unix/mixed/" | "./windows/unix/mixed/" |
"..//windows\\unix/mixed" | "../windows/unix/mixed" |
"windows\\unix/mixed/" | "windows/unix/mixed/" |
"..//windows\\..\\unix/mixed" | "../unix/mixed" |
| Input | Output |
|---|
"\\\\server\\share\\file" | "//server/share/file" |
"//server/share/file" | "//server/share/file" |
"\\\\?\\UNC\\server\\share\\file" | "//?/UNC/server/share/file" |
"\\\\LOCALHOST\\c$\\temp\\file" | "//LOCALHOST/c$/temp/file" |
"\\\\?\\c:\\temp\\file" | "//?/c:/temp/file" |
"\\\\.\\c:\\temp\\file" | "//./c:/temp/file" |
"//./c:/temp/file" | "//./c:/temp/file" |
"////\\.\\c:/temp\\//file" | "//./c:/temp/file" |
| Input | Output |
|---|
"./" | "." |
"./../" | ".." |
"./../dep/" | "../dep" |
"path//dep\\" | "path/dep" |
".//windows\\unix/mixed/" | "./windows/unix/mixed" |
"/" | "/" |
"//" | "/" |
| Input | Output |
|---|
["some/nodejs/deep","../path"] | "some/nodejs/path" |
["./some/local/unix/","../path"] | "./some/local/path" |
["./some\\current\\mixed","..\\path"] | "./some/current/path" |
["../some/relative/destination","..\\path"] | "../some/relative/path" |
["\\\\server\\share\\file","..\\path"] | "//server/share/path" |
["\\\\.\\c:\\temp\\file","..\\path"] | "//./c:/temp/path" |
["//server/share/file","../path"] | "//server/share/path" |
["//./c:/temp/file","../path"] | "//./c:/temp/path" |
["",""] | "." |
["./foo","","bar"] | "./foo/bar" |
| Input | Output |
|---|
"c:/windows/nodejs/path" | "c:/windows/nodejs/path" |
"c:/windows/../nodejs/path" | "c:/nodejs/path" |
"c:\\windows\\nodejs\\path" | "c:/windows/nodejs/path" |
"c:\\windows\\..\\nodejs\\path" | "c:/nodejs/path" |
"/windows\\unix/mixed" | "/windows/unix/mixed" |
"\\windows//unix/mixed" | "/windows/unix/mixed" |
"\\windows\\..\\unix/mixed/" | "/unix/mixed/" |
| Input | Output |
|---|
["some/nodejs/deep","../path"] | "some/nodejs/path" |
["some/nodejs\\windows","../path"] | "some/nodejs/path" |
["some\\windows\\only","..\\path"] | "some/windows/path" |
| Input | Output |
|---|
".//windows\\//unix/\\/mixed////" | "./windows/unix/mixed/" |
"..///windows\\..\\\\unix/mixed" | "../windows/../unix/mixed" |
"" | "" |
"/" | "/" |
"\\\\server\\share" | "//server/share" |
"already/forward/slashes" | "already/forward/slashes" |
"\\" | "/" |
"////multiple///slashes" | "//multiple/slashes" |
"mixed\\back//and///slashes" | "mixed/back/and/slashes" |
"a\\b\\c" | "a/b/c" |
"C:\\Users\\test" | "C:/Users/test" |
| Input | Output |
|---|
"\\foo" | true (backslash normalized) |
"\\\\server\\share" | true (backslash normalized) |
"foo\\bar" | false (backslash normalized) |