normalize-path.js 198 B

12345678
  1. var UNIX_SEPARATOR = '/';
  2. var WINDOWS_SEPARATOR_PATTERN = /\\/g;
  3. function normalizePath(path) {
  4. return path.replace(WINDOWS_SEPARATOR_PATTERN, UNIX_SEPARATOR);
  5. }
  6. module.exports = normalizePath;