is-outside-dir-win32.js 239 B

12345678910
  1. 'use strict';
  2. const path = require('path');
  3. const minimatch = require('minimatch');
  4. const dot = { dot: true };
  5. module.exports = function(dir, filename) {
  6. return !minimatch(path.resolve(dir, filename), path.join(dir, '**'), dot);
  7. };