index.js 291 B

1234567891011121314151617
  1. // Copyright 2014 Simon Lydell
  2. // X11 (“MIT”) Licensed. (See LICENSE.)
  3. var path = require("path")
  4. "use strict"
  5. function urix(aPath) {
  6. if (path.sep === "\\") {
  7. return aPath
  8. .replace(/\\/g, "/")
  9. .replace(/^[a-z]:\/?/i, "/")
  10. }
  11. return aPath
  12. }
  13. module.exports = urix