'use strict';

var path = require('path');

function isChildPath(base, path$1) {
  const relativePath = path.relative(base, path$1);
  if (relativePath === "") {
    return true;
  }
  const outsideBase = relativePath.startsWith("..");
  const differentDrive = path.isAbsolute(relativePath);
  return !outsideBase && !differentDrive;
}

exports.isChildPath = isChildPath;
//# sourceMappingURL=isChildPath.cjs.js.map
