aboutsummaryrefslogtreecommitdiff
path: root/node_modules/globby/readme.md
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/globby/readme.md')
-rw-r--r--node_modules/globby/readme.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/node_modules/globby/readme.md b/node_modules/globby/readme.md
index aad991d02..e10a48868 100644
--- a/node_modules/globby/readme.md
+++ b/node_modules/globby/readme.md
@@ -42,11 +42,17 @@ Returns an array of matching paths.
Returns an array of objects in the format `{ pattern: string, opts: Object }`, which can be passed as arguments to [`node-glob`](https://github.com/isaacs/node-glob). This is useful for other globbing-related packages.
-Note that you should avoid running the same tasks multiple times as they contain a file system cache. Instead, create a new tasks list to ensure that file system changes are taken in consideration.
+Note that you should avoid running the same tasks multiple times as they contain a file system cache. Instead, run this method each time to ensure file system changes are taken into consideration.
+
+### globby.hasMagic(patterns, [options])
+
+Returns a `boolean` of whether there are any special glob characters in the `patterns`.
+
+Note that the options affect the results. If `noext: true` is set, then `+(a|b)` will not be considered a magic pattern. If the pattern has a brace expansion, like `a/{b/c,x/y}`, then that is considered magical, unless `nobrace: true` is set.
#### patterns
-Type: `string`, `Array`
+Type: `string` `Array`
See supported `minimatch` [patterns](https://github.com/isaacs/minimatch#usage).