Son CV dans un terminal web en Javascript! https://terminal-cv.gregandev.fr
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
terminal-cv/node_modules/@parcel/utils/lib/isDirectoryInside.js

24 lines
540 B

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = isDirectoryInside;
function _path() {
const data = _interopRequireDefault(require("path"));
_path = function () {
return data;
};
return data;
}
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function isDirectoryInside(child, parent) {
const relative = _path().default.relative(parent, child);
return !relative.startsWith('..') && !_path().default.isAbsolute(relative);
}