You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
@@ -63,7 +59,7 @@ See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in
63
59
64
60
##### expandDirectories
65
61
66
-
Type: `boolean | string[] | object`<br>
62
+
Type: `boolean | string[] | object`\
67
63
Default: `true`
68
64
69
65
If set to `true`, `globby` will automatically glob directories for you. If you define an `Array` it will only glob files that matches the patterns inside the `Array`. You can also define an `object` with `files` and `extensions` like below:
@@ -88,7 +84,7 @@ Note that if you set this option to `false`, you won't get back matched director
88
84
89
85
##### gitignore
90
86
91
-
Type: `boolean`<br>
87
+
Type: `boolean`\
92
88
Default: `false`
93
89
94
90
Respect ignore patterns in `.gitignore` files that apply to the globbed files.
@@ -131,8 +127,7 @@ This function is backed by [`fast-glob`](https://github.com/mrmlnc/fast-glob#isd
131
127
132
128
Returns a `Promise<(path: string) => boolean>` indicating whether a given path is ignored via a `.gitignore` file.
133
129
134
-
Takes `cwd?: string` and `ignore?: string[]` as options. `.gitignore` files matched by the ignore config are not
135
-
used for the resulting filter function.
130
+
Takes `cwd?: string` and `ignore?: string[]` as options. `.gitignore` files matched by the ignore config are not used for the resulting filter function.
136
131
137
132
```js
138
133
const {gitignore} =require('globby');
@@ -149,7 +144,6 @@ Returns a `(path: string) => boolean` indicating whether a given path is ignored
149
144
150
145
Takes the same options as `globby.gitignore`.
151
146
152
-
153
147
## Globbing patterns
154
148
155
149
Just a quick overview.
@@ -162,14 +156,12 @@ Just a quick overview.
162
156
163
157
[Various patterns and expected matches.](https://github.com/sindresorhus/multimatch/blob/master/test/test.js)
164
158
165
-
166
159
## globby for enterprise
167
160
168
161
Available as part of the Tidelift Subscription.
169
162
170
163
The maintainers of globby and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-globby?utm_source=npm-globby&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
171
164
172
-
173
165
## Related
174
166
175
167
-[multimatch](https://github.com/sindresorhus/multimatch) - Match against a list instead of the filesystem
0 commit comments