Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dirmatch

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dirmatch - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

6

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc