(str, separator = path.sep)
| 1 | import path from 'path'; |
| 2 | |
| 3 | export default function normalizePath(str, separator = path.sep) { |
| 4 | if (separator === '\\') { |
| 5 | str = str.replace(/\\/g, '/'); |
| 6 | } |
| 7 | return str; |
| 8 | } |
no outgoing calls
no test coverage detected