aboutsummaryrefslogtreecommitdiff
path: root/node_modules/globby/readme.md
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-27 17:36:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-27 17:36:13 +0200
commit5f466137ad6ac596600e3ff53c9b786815398445 (patch)
treef914c221874f0b16bf3def7ac01d59d1a99a3b0b /node_modules/globby/readme.md
parentc9f5ac8e763eda19aa0564179300cfff76785435 (diff)
node_modules, clean up package.json
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).