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.0 to 0.0.1

7

index.js
var path = require('path')
var _ = require('underscore')
var walkdir = require('walkdir')
var walk = require('walk-sync')
var minimatch = require('minimatch')

@@ -17,6 +17,3 @@

var dirmatch = function(dir, patterns, options) {
var abspaths = walkdir.sync(dir)
var paths = _.map(abspaths, function(abspath) {
return path.relative(dir, abspath)
})
var paths = walk(dir)
var matches = _.map(patterns, function(pattern) {

@@ -23,0 +20,0 @@ var exclusion = pattern.indexOf('!') === 0

{
"name": "dirmatch",
"version": "0.0.0",
"version": "0.0.1",
"description": "Match multiple patterns with all files in directory",

@@ -24,4 +24,4 @@ "main": "index.js",

"underscore": "^1.7.0",
"walkdir": "0.0.7"
"walk-sync": "^0.1.3"
}
}
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