aboutsummaryrefslogtreecommitdiff
path: root/node_modules/vinyl/lib/normalize.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/vinyl/lib/normalize.js')
-rw-r--r--node_modules/vinyl/lib/normalize.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/vinyl/lib/normalize.js b/node_modules/vinyl/lib/normalize.js
new file mode 100644
index 000000000..f90dcb2b0
--- /dev/null
+++ b/node_modules/vinyl/lib/normalize.js
@@ -0,0 +1,9 @@
+'use strict';
+
+var path = require('path');
+
+function normalize(str) {
+ return str === '' ? str : path.normalize(str);
+}
+
+module.exports = normalize;