Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "nanomatch", | ||
"description": "Fast, minimal glob matcher for node.js. Complete Bash 4.3 wildcard support (no support for exglobs, brackets or braces)", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "https://github.com/jonschlinkert/nanomatch", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
@@ -299,13 +299,12 @@ # nanomatch [![NPM version](https://img.shields.io/npm/v/nanomatch.svg?style=flat)](https://www.npmjs.com/package/nanomatch) [![NPM downloads](https://img.shields.io/npm/dm/nanomatch.svg?style=flat)](https://npmjs.org/package/nanomatch) [![Build Status](https://img.shields.io/travis/jonschlinkert/nanomatch.svg?style=flat)](https://travis-ci.org/jonschlinkert/nanomatch) | ||
**Pattern** | **Description** | ||
| **Pattern** | **Description** | | ||
| --- | --- | | ||
| `*` | Matches any string except for `/`, leading `.`, or `/.` inside a path | | ||
| `**` | Matches any string including `/`, but not a leading `.` or `/.` inside a path. More than two stars (e.g. `***` is treated the same as one star, and `**` loses its special meaning | when it's not the only thing in a path segment, per Bash specifications) | | ||
| `foo*` | Matches any string beginning with `foo` | | ||
| `*bar*` | Matches any string containing `bar` (beginning, middle or end) | | ||
| `*.min.js` | Matches any string ending with `.min.js` | | ||
| `[abc]*.js` | Matches any string beginning with `a`, `b`, or `c` and ending with `.js` | | ||
| `abc?` | Matches `abcd` or `abcz` but not `abcde` | | ||
--- | --- | ||
`*` | Matches any string except for `/`, leading `.`, or `/.` inside a path | ||
`**` | Matches any string including `/`, but not a leading `.` or `/.` inside a path. More than two stars (e.g. `***` is treated the same as one star, and `**` loses its special meaning when it's not the only thing in a path segment, per Bash specifications) | ||
`foo*` | Matches any string beginning with `foo` | ||
`*bar*` | Matches any string containing `bar` (beginning, middle or end) | ||
`*.min.js` | Matches any string ending with `.min.js` | ||
`[abc]*.js` | Matches any string beginning with `a`, `b`, or `c` and ending with `.js` | ||
`abc?` | Matches `abcd` or `abcz` but not `abcde` | ||
The exceptions noted for `*` apply to all patterns that contain a `*`. | ||
@@ -327,12 +326,11 @@ | ||
**Related library** | **Matching Type** | **Example** | **Description** | ||
| **Related library** | **Matching Type** | **Example** | **Description** | | ||
| --- | --- | --- | --- | --- | --- | | ||
| `nanomatch` (you are here) | Wildcards | `*` | [Filename expansion](https://www.gnu.org/software/bash/manual/html_node/Filename-Expansion.html#Filename-Expansion), also referred to as globbing and pathname expansion, allows the use of [wildcards](#features) for matching. | | ||
| [expand-tilde](https://github.com/jonschlinkert/expand-tilde) | Tildes | `~` | [Tilde expansion](https://www.gnu.org/software/bash/manual/html_node/Tilde-Expansion.html#Tilde-Expansion) converts the leading tilde in a file path to the user home directory. | | ||
| [braces](https://github.com/jonschlinkert/braces) | Braces | `{a,b,c}` | [Brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html) | | ||
| [expand-brackets](https://github.com/jonschlinkert/expand-brackets) | Brackets | `[[:alpha:]]` | [POSIX character classes](https://www.gnu.org/software/grep/manual/html_node/Character-Classes-and-Bracket-Expressions.html) (also referred to as POSIX brackets, or POSIX character classes) | | ||
| [extglob](https://github.com/jonschlinkert/extglob) | Parens | `!(a | b)` | [Extglobs](https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html#Pattern-Matching) | | ||
| [micromatch](https://github.com/jonschlinkert/micromatch) | All | all | Micromatch is built on top of the other libraries. | | ||
--- | --- | --- | --- | ||
[micromatch](https://github.com/jonschlinkert/micromatch) | Wildcards | `*` | [Filename expansion](https://www.gnu.org/software/bash/manual/html_node/Filename-Expansion.html#Filename-Expansion), also referred to as globbing and pathname expansion, allows the use of [wildcards](#features) for matching. | ||
[expand-tilde](https://github.com/jonschlinkert/expand-tilde) | Tildes | `~` | [Tilde expansion](https://www.gnu.org/software/bash/manual/html_node/Tilde-Expansion.html#Tilde-Expansion) converts the leading tilde in a file path to the user home directory. | ||
[braces](https://github.com/jonschlinkert/braces) | Braces | `{a,b,c}` | [Brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html) | ||
[expand-brackets](https://github.com/jonschlinkert/expand-brackets) | Brackets | `[[:alpha:]]` | [POSIX character classes](https://www.gnu.org/software/grep/manual/html_node/Character-Classes-and-Bracket-Expressions.html) (also referred to as POSIX brackets, or POSIX character classes) | ||
[extglob](https://github.com/jonschlinkert/extglob) | Parens | `!(a|b)` | [Extglobs](https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html#Pattern-Matching) | ||
[micromatch](https://github.com/jonschlinkert/micromatch) | All | all | Micromatch is built on top of the other libraries. | ||
There are many resources available on the web if you want to dive deeper into how these features work in Bash. | ||
@@ -339,0 +337,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
46287
437