Comparing version 0.0.1 to 0.1.0
@@ -1,2 +0,1 @@ | ||
var path = require('path') | ||
var _ = require('underscore') | ||
@@ -18,6 +17,9 @@ var walk = require('walk-sync') | ||
var paths = walk(dir) | ||
var filesPaths = _.filter(paths, function(path) { | ||
return path[path.length] !== '/' | ||
}) | ||
var matches = _.map(patterns, function(pattern) { | ||
var exclusion = pattern.indexOf('!') === 0 | ||
if (exclusion) pattern = pattern.slice(1) | ||
var matches = minimatch.match(paths, pattern, options) | ||
var matches = minimatch.match(filesPaths, pattern, options) | ||
return {exclusion: exclusion, matches: matches} | ||
@@ -24,0 +26,0 @@ }) |
{ | ||
"name": "dirmatch", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "Match multiple patterns with all files in directory", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4568
52