(path)
| 235 | [TypeId]: TypeId, |
| 236 | resolve, |
| 237 | normalize(path) { |
| 238 | if (path.length === 0) return "." |
| 239 | |
| 240 | const isAbsolute = path.charCodeAt(0) === 47 /*/*/ |
| 241 | const trailingSeparator = path.charCodeAt(path.length - 1) === 47 /*/*/ |
| 242 | |
| 243 | // Normalize the path |
| 244 | path = normalizeStringPosix(path, !isAbsolute) |
| 245 | |
| 246 | if (path.length === 0 && !isAbsolute) path = "." |
| 247 | if (path.length > 0 && trailingSeparator) path += "/" |
| 248 | |
| 249 | if (isAbsolute) return "/" + path |
| 250 | return path |
| 251 | }, |
| 252 | |
| 253 | isAbsolute(path) { |
| 254 | return path.length > 0 && path.charCodeAt(0) === 47 /*/*/ |
nothing calls this directly
no test coverage detected