Socket
Socket
Sign inDemoInstall

minimatch

Package Overview
Dependencies
Maintainers
0
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minimatch - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

.gitmodules

3

package.json

@@ -5,3 +5,3 @@ {

"description": "a glob matcher in javascript",
"version": "0.0.1",
"version": "0.0.2",
"repository": {

@@ -18,2 +18,3 @@ "type": "git",

},
"bundleDependencies": ["lru-cache"],
"dependencies": {

@@ -20,0 +21,0 @@ "lru-cache": "~1.0.2"

@@ -46,12 +46,23 @@ This is the matching library used internally by npm.

* `minimatch(path, pattern, options)` Main export. Tests a path against
the pattern using the options.
* `minimatch.filter(pattern, options)` Returns a function that tests its
supplied argument, suitable for use with `Array.filter`.
* `minimatch.match(list, pattern, options)` Match against the list of
files, in the style of fnmatch or glob. If nothing is matched, then
return the pattern (unless `{ null: true }` in the options.)
* `minimatch.makeRe(pattern, options)` Make a regular expression object
from the pattern.
### minimatch(path, pattern, options)
Main export. Tests a path against
the pattern using the options.
### minimatch.filter(pattern, options)
Returns a function that tests its
supplied argument, suitable for use with `Array.filter`.
### minimatch.match(list, pattern, options)
Match against the list of
files, in the style of fnmatch or glob. If nothing is matched, then
return the pattern (unless `{ null: true }` in the options.)
### minimatch.makeRe(pattern, options)
Make a regular expression object
from the pattern.
## Options

@@ -61,15 +72,38 @@

* `debug` Dump a ton of stuff to stderr.
* `null` Return an empty list from minimatch.match, instead of a list
containing the pattern itself.
* `nocase` Perform a case-insensitive match.
* `cache` An LRU cache with `.get(k)` and `.set(k,v)` methods. By
default, an instance of `node-lru-cache` is used, with 1000 max
entries.
* `slash` If set, then `a/*` will match `a/` as well as `a/b`.
* `matchBase` If set, then patterns without slashes will be matched
against the basename of the path if it contains slashes. For example,
`a?b` would match `xyz/123/acb`.
* `partial` Internal. Used by `minimatch.makeRe`.
* `dot` Allow patterns to match paths starting with a period, even if
the pattern does not explicitly start with a period.
### debug
Dump a ton of stuff to stderr.
### null
Return an empty list from minimatch.match, instead of a list
containing the pattern itself.
### nocase
Perform a case-insensitive match.
### cache
An LRU cache with `.get(k)` and `.set(k,v)` methods. By
default, an instance of `node-lru-cache` is used, with 1000 max
entries.
### slash
If set, then `a/*` will match `a/` as well as `a/b`.
### matchBase
If set, then patterns without slashes will be matched
against the basename of the path if it contains slashes. For example,
`a?b` would match `xyz/123/acb`.
### partial
Internal. Used by `minimatch.makeRe`.
### dot
Allow patterns to match paths starting with a period, even if
the pattern does not explicitly start with a period.
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