From 363723fc84f7b8477592e0105aeb331ec9a017af Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 14 Aug 2017 05:01:11 +0200 Subject: node_modules --- node_modules/urix/index.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 node_modules/urix/index.js (limited to 'node_modules/urix/index.js') diff --git a/node_modules/urix/index.js b/node_modules/urix/index.js new file mode 100644 index 000000000..dc6ef2700 --- /dev/null +++ b/node_modules/urix/index.js @@ -0,0 +1,17 @@ +// 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 -- cgit v1.2.3