Sha256: 5cfe34f8dc0d3a4bc5220939dbaa89040706db4567e97634a1ba46077ed8f0df

Contents?: true

Size: 308 Bytes

Versions: 41

Compression:

Stored size: 308 Bytes

Contents

// Copyright 2014 Simon Lydell
// X11 (“MIT”) Licensed. (See LICENSE.)

var path = require("path")

"use strict"

function urix(aPath) {
  if (path.sep === "\\") {
    return aPath
      .replace(/\\/g, "/")
      .replace(/^[a-z]:\/?/i, "/")
  }
  return aPath
}

module.exports = urix

Version data entries

41 entries across 40 versions & 14 rubygems

Version Path
dragonfly_puppeteer-0.1.0 node_modules/urix/index.js