(fileURLOrPath)
| 1691 | } |
| 1692 | |
| 1693 | function toPathIfFileURL(fileURLOrPath) { |
| 1694 | if (!isURL(fileURLOrPath)) |
| 1695 | return fileURLOrPath; |
| 1696 | return fileURLToPath(fileURLOrPath); |
| 1697 | } |
| 1698 | |
| 1699 | /** |
| 1700 | * This util takes a string containing a URL and return the URL origin, |
no test coverage detected
searching dependent graphs…