aboutsummaryrefslogtreecommitdiff
path: root/node_modules/is-path-inside/index.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-02-20 17:16:29 +0100
committerFlorian Dold <florian.dold@gmail.com>2018-02-20 17:16:29 +0100
commit0ad2935a1f6436d62251f30e826c9c78bfd49525 (patch)
treee9852ed84b8e6520361dbe514c98e13d69672be7 /node_modules/is-path-inside/index.js
parent23f4998dfec5edc8f0ce134d848c996d434181ba (diff)
downloadwallet-core-0ad2935a1f6436d62251f30e826c9c78bfd49525.tar.xz
node_modules
Diffstat (limited to 'node_modules/is-path-inside/index.js')
-rw-r--r--node_modules/is-path-inside/index.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/is-path-inside/index.js b/node_modules/is-path-inside/index.js
new file mode 100644
index 000000000..0a4d2fd1e
--- /dev/null
+++ b/node_modules/is-path-inside/index.js
@@ -0,0 +1,14 @@
+'use strict';
+var path = require('path');
+var pathIsInside = require('path-is-inside');
+
+module.exports = function (a, b) {
+ a = path.resolve(a);
+ b = path.resolve(b);
+
+ if (a === b) {
+ return false;
+ }
+
+ return pathIsInside(a, b);
+};