aboutsummaryrefslogtreecommitdiff
path: root/node_modules/is-path-inside/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/is-path-inside/index.js')
-rw-r--r--node_modules/is-path-inside/index.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/node_modules/is-path-inside/index.js b/node_modules/is-path-inside/index.js
deleted file mode 100644
index 28ed79c..0000000
--- a/node_modules/is-path-inside/index.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-const path = require('path');
-
-module.exports = (childPath, parentPath) => {
- const relation = path.relative(parentPath, childPath);
- return Boolean(
- relation &&
- relation !== '..' &&
- !relation.startsWith(`..${path.sep}`) &&
- relation !== path.resolve(childPath)
- );
-};