index.js 236 B

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. };