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.

index.js 236 B

3 years ago
1234567891011121314
  1. 'use strict';
  2. var path = require('path');
  3. var pathIsInside = require('path-is-inside');
  4. module.exports = function (a, b) {
  5. a = path.resolve(a);
  6. b = path.resolve(b);
  7. if (a === b) {
  8. return false;
  9. }
  10. return pathIsInside(a, b);
  11. };