wishthis/node_modules/is-path-inside/index.js
2022-01-21 09:28:41 +01:00

14 lines
236 B
JavaScript

'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);
};