immosquare-cleaner 0.1.42 → 0.1.43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/immosquare-cleaner/version.rb +1 -1
- data/node_modules/.bin/ncu +1 -1
- data/node_modules/.bin/npm-check-updates +1 -1
- data/node_modules/.bin/rimraf +1 -1
- data/node_modules/@eslint/config-array/dist/cjs/index.cjs +5 -0
- data/node_modules/@eslint/config-array/dist/esm/index.js +5 -0
- data/node_modules/@eslint/config-array/package.json +1 -1
- data/node_modules/@eslint/js/package.json +1 -1
- data/node_modules/ansi-regex/index.d.ts +13 -9
- data/node_modules/ansi-regex/index.js +5 -3
- data/node_modules/ansi-regex/license +1 -1
- data/node_modules/ansi-regex/package.json +6 -9
- data/node_modules/ansi-regex/readme.md +8 -2
- data/node_modules/brace-expansion/README.md +0 -6
- data/node_modules/brace-expansion/index.js +84 -86
- data/node_modules/brace-expansion/package.json +4 -3
- data/node_modules/chalk/license +1 -1
- data/node_modules/chalk/package.json +23 -38
- data/node_modules/chalk/readme.md +85 -69
- data/node_modules/chalk/source/index.js +84 -80
- data/node_modules/eslint/lib/cli.js +0 -20
- data/node_modules/eslint/lib/languages/js/source-code/source-code.js +19 -0
- data/node_modules/eslint/lib/linter/apply-disable-directives.js +24 -12
- data/node_modules/eslint/lib/linter/linter.js +44 -20
- data/node_modules/eslint/lib/linter/report-translator.js +10 -10
- data/node_modules/eslint/lib/linter/rule-fixer.js +38 -15
- data/node_modules/eslint/lib/shared/flags.js +2 -2
- data/node_modules/eslint/package.json +5 -4
- data/node_modules/glob/LICENSE +7 -1
- data/node_modules/glob/README.md +284 -1120
- data/node_modules/glob/common.js +238 -0
- data/node_modules/glob/glob.js +790 -0
- data/node_modules/glob/package.json +34 -76
- data/node_modules/glob/sync.js +486 -0
- data/node_modules/lru-cache/LICENSE +1 -1
- data/node_modules/lru-cache/README.md +104 -1055
- data/node_modules/lru-cache/index.js +246 -1139
- data/node_modules/lru-cache/package.json +11 -75
- data/node_modules/minimatch/LICENSE +1 -1
- data/node_modules/minimatch/README.md +65 -289
- data/node_modules/minimatch/package.json +14 -67
- data/node_modules/npm-check-updates/README.md +9 -12
- data/node_modules/npm-check-updates/build/cli.js +21 -21
- data/node_modules/npm-check-updates/build/cli.js.map +1 -1
- data/node_modules/npm-check-updates/build/index-CWktU8PK.js +58 -0
- data/node_modules/npm-check-updates/build/index-CWktU8PK.js.map +1 -0
- data/node_modules/npm-check-updates/build/index.d.ts +1 -3
- data/node_modules/npm-check-updates/build/index.js +207 -223
- data/node_modules/npm-check-updates/build/index.js.map +1 -1
- data/node_modules/npm-check-updates/package.json +101 -105
- data/node_modules/rimraf/LICENSE +1 -1
- data/node_modules/rimraf/README.md +70 -188
- data/node_modules/rimraf/bin.js +50 -0
- data/node_modules/rimraf/package.json +16 -74
- data/node_modules/rimraf/rimraf.js +364 -0
- data/node_modules/semver/README.md +27 -221
- data/node_modules/semver/bin/semver.js +84 -107
- data/node_modules/semver/package.json +14 -63
- data/node_modules/semver/semver.js +1643 -0
- data/node_modules/strip-ansi/index.d.ts +4 -2
- data/node_modules/strip-ansi/index.js +3 -13
- data/node_modules/strip-ansi/license +1 -1
- data/node_modules/strip-ansi/package.json +7 -10
- data/node_modules/strip-ansi/readme.md +7 -2
- data/node_modules/strip-json-comments/index.d.ts +13 -18
- data/node_modules/strip-json-comments/index.js +38 -68
- data/node_modules/strip-json-comments/package.json +5 -13
- data/node_modules/strip-json-comments/readme.md +18 -15
- data/node_modules/yallist/package.json +1 -1
- data/node_modules/yallist/yallist.js +3 -3
- data/package.json +3 -3
- metadata +14 -736
- data/node_modules/@eslint/config-array/node_modules/minimatch/LICENSE +0 -15
- data/node_modules/@eslint/config-array/node_modules/minimatch/README.md +0 -230
- data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
- data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -129
- data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -201
- data/node_modules/@eslint/config-array/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -47
- data/node_modules/@eslint/config-array/node_modules/minimatch/package.json +0 -33
- data/node_modules/chalk/source/index.d.ts +0 -320
- data/node_modules/chalk/source/utilities.js +0 -33
- data/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
- data/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
- data/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
- data/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
- data/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
- data/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
- data/node_modules/eslint/node_modules/chalk/license +0 -9
- data/node_modules/eslint/node_modules/chalk/package.json +0 -68
- data/node_modules/eslint/node_modules/chalk/readme.md +0 -341
- data/node_modules/eslint/node_modules/chalk/source/index.js +0 -229
- data/node_modules/eslint/node_modules/minimatch/LICENSE +0 -15
- data/node_modules/eslint/node_modules/minimatch/README.md +0 -230
- data/node_modules/eslint/node_modules/minimatch/minimatch.js +0 -947
- data/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
- data/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -129
- data/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -201
- data/node_modules/eslint/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -47
- data/node_modules/eslint/node_modules/minimatch/package.json +0 -33
- data/node_modules/eslint/node_modules/strip-ansi/index.d.ts +0 -17
- data/node_modules/eslint/node_modules/strip-ansi/index.js +0 -4
- data/node_modules/eslint/node_modules/strip-ansi/license +0 -9
- data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/index.d.ts +0 -37
- data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/index.js +0 -10
- data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/license +0 -9
- data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/package.json +0 -55
- data/node_modules/eslint/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +0 -78
- data/node_modules/eslint/node_modules/strip-ansi/package.json +0 -54
- data/node_modules/eslint/node_modules/strip-ansi/readme.md +0 -46
- data/node_modules/glob/dist/commonjs/glob.d.ts +0 -344
- data/node_modules/glob/dist/commonjs/glob.d.ts.map +0 -1
- data/node_modules/glob/dist/commonjs/glob.js +0 -243
- data/node_modules/glob/dist/commonjs/glob.js.map +0 -1
- data/node_modules/glob/dist/commonjs/has-magic.d.ts +0 -14
- data/node_modules/glob/dist/commonjs/has-magic.d.ts.map +0 -1
- data/node_modules/glob/dist/commonjs/has-magic.js +0 -27
- data/node_modules/glob/dist/commonjs/has-magic.js.map +0 -1
- data/node_modules/glob/dist/commonjs/ignore.d.ts +0 -20
- data/node_modules/glob/dist/commonjs/ignore.d.ts.map +0 -1
- data/node_modules/glob/dist/commonjs/ignore.js +0 -108
- data/node_modules/glob/dist/commonjs/ignore.js.map +0 -1
- data/node_modules/glob/dist/commonjs/index.d.ts +0 -96
- data/node_modules/glob/dist/commonjs/index.d.ts.map +0 -1
- data/node_modules/glob/dist/commonjs/index.js +0 -68
- data/node_modules/glob/dist/commonjs/index.js.map +0 -1
- data/node_modules/glob/dist/commonjs/package.json +0 -1
- data/node_modules/glob/dist/commonjs/pattern.d.ts +0 -77
- data/node_modules/glob/dist/commonjs/pattern.d.ts.map +0 -1
- data/node_modules/glob/dist/commonjs/pattern.js +0 -219
- data/node_modules/glob/dist/commonjs/pattern.js.map +0 -1
- data/node_modules/glob/dist/commonjs/processor.d.ts +0 -59
- data/node_modules/glob/dist/commonjs/processor.d.ts.map +0 -1
- data/node_modules/glob/dist/commonjs/processor.js +0 -302
- data/node_modules/glob/dist/commonjs/processor.js.map +0 -1
- data/node_modules/glob/dist/commonjs/walker.d.ts +0 -96
- data/node_modules/glob/dist/commonjs/walker.d.ts.map +0 -1
- data/node_modules/glob/dist/commonjs/walker.js +0 -358
- data/node_modules/glob/dist/commonjs/walker.js.map +0 -1
- data/node_modules/glob/dist/esm/bin.d.mts +0 -3
- data/node_modules/glob/dist/esm/bin.d.mts.map +0 -1
- data/node_modules/glob/dist/esm/bin.mjs +0 -275
- data/node_modules/glob/dist/esm/bin.mjs.map +0 -1
- data/node_modules/glob/dist/esm/glob.d.ts +0 -344
- data/node_modules/glob/dist/esm/glob.d.ts.map +0 -1
- data/node_modules/glob/dist/esm/glob.js +0 -239
- data/node_modules/glob/dist/esm/glob.js.map +0 -1
- data/node_modules/glob/dist/esm/has-magic.d.ts +0 -14
- data/node_modules/glob/dist/esm/has-magic.d.ts.map +0 -1
- data/node_modules/glob/dist/esm/has-magic.js +0 -23
- data/node_modules/glob/dist/esm/has-magic.js.map +0 -1
- data/node_modules/glob/dist/esm/ignore.d.ts +0 -20
- data/node_modules/glob/dist/esm/ignore.d.ts.map +0 -1
- data/node_modules/glob/dist/esm/ignore.js +0 -104
- data/node_modules/glob/dist/esm/ignore.js.map +0 -1
- data/node_modules/glob/dist/esm/index.d.ts +0 -96
- data/node_modules/glob/dist/esm/index.d.ts.map +0 -1
- data/node_modules/glob/dist/esm/index.js +0 -56
- data/node_modules/glob/dist/esm/index.js.map +0 -1
- data/node_modules/glob/dist/esm/package.json +0 -1
- data/node_modules/glob/dist/esm/pattern.d.ts +0 -77
- data/node_modules/glob/dist/esm/pattern.d.ts.map +0 -1
- data/node_modules/glob/dist/esm/pattern.js +0 -215
- data/node_modules/glob/dist/esm/pattern.js.map +0 -1
- data/node_modules/glob/dist/esm/processor.d.ts +0 -59
- data/node_modules/glob/dist/esm/processor.d.ts.map +0 -1
- data/node_modules/glob/dist/esm/processor.js +0 -295
- data/node_modules/glob/dist/esm/processor.js.map +0 -1
- data/node_modules/glob/dist/esm/walker.d.ts +0 -96
- data/node_modules/glob/dist/esm/walker.d.ts.map +0 -1
- data/node_modules/glob/dist/esm/walker.js +0 -352
- data/node_modules/glob/dist/esm/walker.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/LICENSE +0 -15
- data/node_modules/glob/node_modules/minimatch/README.md +0 -454
- data/node_modules/glob/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts +0 -2
- data/node_modules/glob/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +0 -14
- data/node_modules/glob/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/ast.d.ts +0 -19
- data/node_modules/glob/node_modules/minimatch/dist/cjs/ast.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/ast.js +0 -589
- data/node_modules/glob/node_modules/minimatch/dist/cjs/ast.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +0 -8
- data/node_modules/glob/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/brace-expressions.js +0 -152
- data/node_modules/glob/node_modules/minimatch/dist/cjs/brace-expressions.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/escape.d.ts +0 -12
- data/node_modules/glob/node_modules/minimatch/dist/cjs/escape.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/escape.js +0 -22
- data/node_modules/glob/node_modules/minimatch/dist/cjs/escape.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/index.d.ts +0 -94
- data/node_modules/glob/node_modules/minimatch/dist/cjs/index.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/index.js +0 -1011
- data/node_modules/glob/node_modules/minimatch/dist/cjs/index.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/package.json +0 -3
- data/node_modules/glob/node_modules/minimatch/dist/cjs/unescape.d.ts +0 -17
- data/node_modules/glob/node_modules/minimatch/dist/cjs/unescape.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/cjs/unescape.js +0 -24
- data/node_modules/glob/node_modules/minimatch/dist/cjs/unescape.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts +0 -2
- data/node_modules/glob/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +0 -10
- data/node_modules/glob/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/ast.d.ts +0 -19
- data/node_modules/glob/node_modules/minimatch/dist/mjs/ast.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/ast.js +0 -585
- data/node_modules/glob/node_modules/minimatch/dist/mjs/ast.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +0 -8
- data/node_modules/glob/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/brace-expressions.js +0 -148
- data/node_modules/glob/node_modules/minimatch/dist/mjs/brace-expressions.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/escape.d.ts +0 -12
- data/node_modules/glob/node_modules/minimatch/dist/mjs/escape.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/escape.js +0 -18
- data/node_modules/glob/node_modules/minimatch/dist/mjs/escape.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/index.d.ts +0 -94
- data/node_modules/glob/node_modules/minimatch/dist/mjs/index.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/index.js +0 -995
- data/node_modules/glob/node_modules/minimatch/dist/mjs/index.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/package.json +0 -3
- data/node_modules/glob/node_modules/minimatch/dist/mjs/unescape.d.ts +0 -17
- data/node_modules/glob/node_modules/minimatch/dist/mjs/unescape.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minimatch/dist/mjs/unescape.js +0 -20
- data/node_modules/glob/node_modules/minimatch/dist/mjs/unescape.js.map +0 -1
- data/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
- data/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -135
- data/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -203
- data/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -46
- data/node_modules/glob/node_modules/minimatch/package.json +0 -86
- data/node_modules/glob/node_modules/minipass/LICENSE +0 -15
- data/node_modules/glob/node_modules/minipass/README.md +0 -825
- data/node_modules/glob/node_modules/minipass/dist/commonjs/index.d.ts +0 -549
- data/node_modules/glob/node_modules/minipass/dist/commonjs/index.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minipass/dist/commonjs/index.js +0 -1028
- data/node_modules/glob/node_modules/minipass/dist/commonjs/index.js.map +0 -1
- data/node_modules/glob/node_modules/minipass/dist/commonjs/package.json +0 -1
- data/node_modules/glob/node_modules/minipass/dist/esm/index.d.ts +0 -549
- data/node_modules/glob/node_modules/minipass/dist/esm/index.d.ts.map +0 -1
- data/node_modules/glob/node_modules/minipass/dist/esm/index.js +0 -1018
- data/node_modules/glob/node_modules/minipass/dist/esm/index.js.map +0 -1
- data/node_modules/glob/node_modules/minipass/dist/esm/package.json +0 -1
- data/node_modules/glob/node_modules/minipass/package.json +0 -82
- data/node_modules/lru-cache/index.d.ts +0 -869
- data/node_modules/lru-cache/index.mjs +0 -1227
- data/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts +0 -2
- data/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +0 -1
- data/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +0 -14
- data/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +0 -1
- data/node_modules/minimatch/dist/cjs/ast.d.ts +0 -19
- data/node_modules/minimatch/dist/cjs/ast.d.ts.map +0 -1
- data/node_modules/minimatch/dist/cjs/ast.js +0 -589
- data/node_modules/minimatch/dist/cjs/ast.js.map +0 -1
- data/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +0 -8
- data/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +0 -1
- data/node_modules/minimatch/dist/cjs/brace-expressions.js +0 -152
- data/node_modules/minimatch/dist/cjs/brace-expressions.js.map +0 -1
- data/node_modules/minimatch/dist/cjs/escape.d.ts +0 -12
- data/node_modules/minimatch/dist/cjs/escape.d.ts.map +0 -1
- data/node_modules/minimatch/dist/cjs/escape.js +0 -22
- data/node_modules/minimatch/dist/cjs/escape.js.map +0 -1
- data/node_modules/minimatch/dist/cjs/index.d.ts +0 -94
- data/node_modules/minimatch/dist/cjs/index.d.ts.map +0 -1
- data/node_modules/minimatch/dist/cjs/index.js +0 -1011
- data/node_modules/minimatch/dist/cjs/index.js.map +0 -1
- data/node_modules/minimatch/dist/cjs/package.json +0 -3
- data/node_modules/minimatch/dist/cjs/unescape.d.ts +0 -17
- data/node_modules/minimatch/dist/cjs/unescape.d.ts.map +0 -1
- data/node_modules/minimatch/dist/cjs/unescape.js +0 -24
- data/node_modules/minimatch/dist/cjs/unescape.js.map +0 -1
- data/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts +0 -2
- data/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +0 -1
- data/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +0 -10
- data/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +0 -1
- data/node_modules/minimatch/dist/mjs/ast.d.ts +0 -19
- data/node_modules/minimatch/dist/mjs/ast.d.ts.map +0 -1
- data/node_modules/minimatch/dist/mjs/ast.js +0 -585
- data/node_modules/minimatch/dist/mjs/ast.js.map +0 -1
- data/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +0 -8
- data/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +0 -1
- data/node_modules/minimatch/dist/mjs/brace-expressions.js +0 -148
- data/node_modules/minimatch/dist/mjs/brace-expressions.js.map +0 -1
- data/node_modules/minimatch/dist/mjs/escape.d.ts +0 -12
- data/node_modules/minimatch/dist/mjs/escape.d.ts.map +0 -1
- data/node_modules/minimatch/dist/mjs/escape.js +0 -18
- data/node_modules/minimatch/dist/mjs/escape.js.map +0 -1
- data/node_modules/minimatch/dist/mjs/index.d.ts +0 -94
- data/node_modules/minimatch/dist/mjs/index.d.ts.map +0 -1
- data/node_modules/minimatch/dist/mjs/index.js +0 -995
- data/node_modules/minimatch/dist/mjs/index.js.map +0 -1
- data/node_modules/minimatch/dist/mjs/package.json +0 -3
- data/node_modules/minimatch/dist/mjs/unescape.d.ts +0 -17
- data/node_modules/minimatch/dist/mjs/unescape.d.ts.map +0 -1
- data/node_modules/minimatch/dist/mjs/unescape.js +0 -20
- data/node_modules/minimatch/dist/mjs/unescape.js.map +0 -1
- data/node_modules/npm-check-updates/build/index-5sFb3Tvv.js +0 -66
- data/node_modules/npm-check-updates/build/index-5sFb3Tvv.js.map +0 -1
- data/node_modules/npm-check-updates/build/package.json +0 -183
- data/node_modules/npm-check-updates/build/src/bin/cli.d.ts +0 -2
- data/node_modules/npm-check-updates/build/src/bin/cli.js +0 -182
- data/node_modules/npm-check-updates/build/src/bin/cli.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/cli-options.d.ts +0 -9
- data/node_modules/npm-check-updates/build/src/cli-options.js +0 -795
- data/node_modules/npm-check-updates/build/src/cli-options.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/index.d.ts +0 -17
- data/node_modules/npm-check-updates/build/src/index.js +0 -316
- data/node_modules/npm-check-updates/build/src/index.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/cache.d.ts +0 -17
- data/node_modules/npm-check-updates/build/src/lib/cache.js +0 -105
- data/node_modules/npm-check-updates/build/src/lib/cache.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/chalk.d.ts +0 -7
- data/node_modules/npm-check-updates/build/src/lib/chalk.js +0 -66
- data/node_modules/npm-check-updates/build/src/lib/chalk.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/determinePackageManager.d.ts +0 -8
- data/node_modules/npm-check-updates/build/src/lib/determinePackageManager.js +0 -32
- data/node_modules/npm-check-updates/build/src/lib/determinePackageManager.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/doctor.d.ts +0 -8
- data/node_modules/npm-check-updates/build/src/lib/doctor.js +0 -290
- data/node_modules/npm-check-updates/build/src/lib/doctor.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/exists.d.ts +0 -3
- data/node_modules/npm-check-updates/build/src/lib/exists.js +0 -10
- data/node_modules/npm-check-updates/build/src/lib/exists.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/figgy-pudding/index.d.ts +0 -2
- data/node_modules/npm-check-updates/build/src/lib/figgy-pudding/index.js +0 -112
- data/node_modules/npm-check-updates/build/src/lib/figgy-pudding/index.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/filterAndReject.d.ts +0 -12
- data/node_modules/npm-check-updates/build/src/lib/filterAndReject.js +0 -80
- data/node_modules/npm-check-updates/build/src/lib/filterAndReject.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/filterObject.d.ts +0 -4
- data/node_modules/npm-check-updates/build/src/lib/filterObject.js +0 -10
- data/node_modules/npm-check-updates/build/src/lib/filterObject.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/findLockfile.d.ts +0 -12
- data/node_modules/npm-check-updates/build/src/lib/findLockfile.js +0 -54
- data/node_modules/npm-check-updates/build/src/lib/findLockfile.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/findPackage.d.ts +0 -16
- data/node_modules/npm-check-updates/build/src/lib/findPackage.js +0 -78
- data/node_modules/npm-check-updates/build/src/lib/findPackage.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getAllPackages.d.ts +0 -10
- data/node_modules/npm-check-updates/build/src/lib/getAllPackages.js +0 -126
- data/node_modules/npm-check-updates/build/src/lib/getAllPackages.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getCurrentDependencies.d.ts +0 -15
- data/node_modules/npm-check-updates/build/src/lib/getCurrentDependencies.js +0 -76
- data/node_modules/npm-check-updates/build/src/lib/getCurrentDependencies.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getIgnoredUpgrades.d.ts +0 -8
- data/node_modules/npm-check-updates/build/src/lib/getIgnoredUpgrades.js +0 -37
- data/node_modules/npm-check-updates/build/src/lib/getIgnoredUpgrades.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getInstalledPackages.d.ts +0 -12
- data/node_modules/npm-check-updates/build/src/lib/getInstalledPackages.js +0 -35
- data/node_modules/npm-check-updates/build/src/lib/getInstalledPackages.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getNcuRc.d.ts +0 -22
- data/node_modules/npm-check-updates/build/src/lib/getNcuRc.js +0 -60
- data/node_modules/npm-check-updates/build/src/lib/getNcuRc.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getPackageManager.d.ts +0 -13
- data/node_modules/npm-check-updates/build/src/lib/getPackageManager.js +0 -30
- data/node_modules/npm-check-updates/build/src/lib/getPackageManager.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getPeerDependencies.d.ts +0 -6
- data/node_modules/npm-check-updates/build/src/lib/getPeerDependencies.js +0 -31
- data/node_modules/npm-check-updates/build/src/lib/getPeerDependencies.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getPeerDependenciesFromRegistry.d.ts +0 -12
- data/node_modules/npm-check-updates/build/src/lib/getPeerDependenciesFromRegistry.js +0 -35
- data/node_modules/npm-check-updates/build/src/lib/getPeerDependenciesFromRegistry.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getPreferredWildcard.d.ts +0 -10
- data/node_modules/npm-check-updates/build/src/lib/getPreferredWildcard.js +0 -30
- data/node_modules/npm-check-updates/build/src/lib/getPreferredWildcard.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/getRepoUrl.d.ts +0 -11
- data/node_modules/npm-check-updates/build/src/lib/getRepoUrl.js +0 -81
- data/node_modules/npm-check-updates/build/src/lib/getRepoUrl.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/initOptions.d.ts +0 -7
- data/node_modules/npm-check-updates/build/src/lib/initOptions.js +0 -207
- data/node_modules/npm-check-updates/build/src/lib/initOptions.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/isUpgradeable.d.ts +0 -14
- data/node_modules/npm-check-updates/build/src/lib/isUpgradeable.js +0 -68
- data/node_modules/npm-check-updates/build/src/lib/isUpgradeable.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/keyValueBy.d.ts +0 -6
- data/node_modules/npm-check-updates/build/src/lib/keyValueBy.js +0 -23
- data/node_modules/npm-check-updates/build/src/lib/keyValueBy.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/libnpmconfig/index.d.ts +0 -3
- data/node_modules/npm-check-updates/build/src/lib/libnpmconfig/index.js +0 -108
- data/node_modules/npm-check-updates/build/src/lib/libnpmconfig/index.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/loadPackageInfoFromFile.d.ts +0 -5
- data/node_modules/npm-check-updates/build/src/lib/loadPackageInfoFromFile.js +0 -27
- data/node_modules/npm-check-updates/build/src/lib/loadPackageInfoFromFile.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/logging.d.ts +0 -77
- data/node_modules/npm-check-updates/build/src/lib/logging.js +0 -287
- data/node_modules/npm-check-updates/build/src/lib/logging.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/mergeOptions.d.ts +0 -69
- data/node_modules/npm-check-updates/build/src/lib/mergeOptions.js +0 -23
- data/node_modules/npm-check-updates/build/src/lib/mergeOptions.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/programError.d.ts +0 -6
- data/node_modules/npm-check-updates/build/src/lib/programError.js +0 -19
- data/node_modules/npm-check-updates/build/src/lib/programError.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/queryVersions.d.ts +0 -13
- data/node_modules/npm-check-updates/build/src/lib/queryVersions.js +0 -118
- data/node_modules/npm-check-updates/build/src/lib/queryVersions.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/resolveDepSections.d.ts +0 -4
- data/node_modules/npm-check-updates/build/src/lib/resolveDepSections.js +0 -20
- data/node_modules/npm-check-updates/build/src/lib/resolveDepSections.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/runGlobal.d.ts +0 -5
- data/node_modules/npm-check-updates/build/src/lib/runGlobal.js +0 -76
- data/node_modules/npm-check-updates/build/src/lib/runGlobal.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/runLocal.d.ts +0 -18
- data/node_modules/npm-check-updates/build/src/lib/runLocal.js +0 -239
- data/node_modules/npm-check-updates/build/src/lib/runLocal.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/table.d.ts +0 -7
- data/node_modules/npm-check-updates/build/src/lib/table.js +0 -27
- data/node_modules/npm-check-updates/build/src/lib/table.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/upgradeDependencies.d.ts +0 -14
- data/node_modules/npm-check-updates/build/src/lib/upgradeDependencies.js +0 -103
- data/node_modules/npm-check-updates/build/src/lib/upgradeDependencies.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/upgradePackageData.d.ts +0 -14
- data/node_modules/npm-check-updates/build/src/lib/upgradePackageData.js +0 -50
- data/node_modules/npm-check-updates/build/src/lib/upgradePackageData.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/upgradePackageDefinitions.d.ts +0 -13
- data/node_modules/npm-check-updates/build/src/lib/upgradePackageDefinitions.js +0 -58
- data/node_modules/npm-check-updates/build/src/lib/upgradePackageDefinitions.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/version-util.d.ts +0 -180
- data/node_modules/npm-check-updates/build/src/lib/version-util.js +0 -518
- data/node_modules/npm-check-updates/build/src/lib/version-util.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/lib/wrap.d.ts +0 -3
- data/node_modules/npm-check-updates/build/src/lib/wrap.js +0 -45
- data/node_modules/npm-check-updates/build/src/lib/wrap.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/package-managers/bun.d.ts +0 -18
- data/node_modules/npm-check-updates/build/src/package-managers/bun.js +0 -89
- data/node_modules/npm-check-updates/build/src/package-managers/bun.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/package-managers/filters.d.ts +0 -35
- data/node_modules/npm-check-updates/build/src/package-managers/filters.js +0 -96
- data/node_modules/npm-check-updates/build/src/package-managers/filters.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/package-managers/gitTags.d.ts +0 -16
- data/node_modules/npm-check-updates/build/src/package-managers/gitTags.js +0 -112
- data/node_modules/npm-check-updates/build/src/package-managers/gitTags.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/package-managers/index.d.ts +0 -4
- data/node_modules/npm-check-updates/build/src/package-managers/index.js +0 -40
- data/node_modules/npm-check-updates/build/src/package-managers/index.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/package-managers/npm.d.ts +0 -147
- data/node_modules/npm-check-updates/build/src/package-managers/npm.js +0 -688
- data/node_modules/npm-check-updates/build/src/package-managers/npm.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/package-managers/pnpm.d.ts +0 -25
- data/node_modules/npm-check-updates/build/src/package-managers/pnpm.js +0 -103
- data/node_modules/npm-check-updates/build/src/package-managers/pnpm.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/package-managers/staticRegistry.d.ts +0 -10
- data/node_modules/npm-check-updates/build/src/package-managers/staticRegistry.js +0 -52
- data/node_modules/npm-check-updates/build/src/package-managers/staticRegistry.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/package-managers/yarn.d.ts +0 -60
- data/node_modules/npm-check-updates/build/src/package-managers/yarn.js +0 -248
- data/node_modules/npm-check-updates/build/src/package-managers/yarn.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/scripts/build-options.d.ts +0 -1
- data/node_modules/npm-check-updates/build/src/scripts/build-options.js +0 -121
- data/node_modules/npm-check-updates/build/src/scripts/build-options.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/CLIOption.d.ts +0 -16
- data/node_modules/npm-check-updates/build/src/types/CLIOption.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/CLIOption.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/Cacher.d.ts +0 -10
- data/node_modules/npm-check-updates/build/src/types/Cacher.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/Cacher.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/ExtendedHelp.d.ts +0 -5
- data/node_modules/npm-check-updates/build/src/types/ExtendedHelp.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/ExtendedHelp.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/FilterFunction.d.ts +0 -3
- data/node_modules/npm-check-updates/build/src/types/FilterFunction.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/FilterFunction.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/FilterPattern.d.ts +0 -3
- data/node_modules/npm-check-updates/build/src/types/FilterPattern.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/FilterPattern.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/FilterResultsFunction.d.ts +0 -9
- data/node_modules/npm-check-updates/build/src/types/FilterResultsFunction.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/FilterResultsFunction.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/GetVersion.d.ts +0 -6
- data/node_modules/npm-check-updates/build/src/types/GetVersion.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/GetVersion.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/GroupFunction.d.ts +0 -4
- data/node_modules/npm-check-updates/build/src/types/GroupFunction.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/GroupFunction.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/IgnoredUpgrade.d.ts +0 -8
- data/node_modules/npm-check-updates/build/src/types/IgnoredUpgrade.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/IgnoredUpgrade.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/IndexType.d.ts +0 -4
- data/node_modules/npm-check-updates/build/src/types/IndexType.js +0 -4
- data/node_modules/npm-check-updates/build/src/types/IndexType.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/Maybe.d.ts +0 -2
- data/node_modules/npm-check-updates/build/src/types/Maybe.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/Maybe.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/MockedVersions.d.ts +0 -5
- data/node_modules/npm-check-updates/build/src/types/MockedVersions.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/MockedVersions.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/NpmConfig.d.ts +0 -4
- data/node_modules/npm-check-updates/build/src/types/NpmConfig.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/NpmConfig.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/NpmOptions.d.ts +0 -6
- data/node_modules/npm-check-updates/build/src/types/NpmOptions.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/NpmOptions.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/Options.d.ts +0 -17
- data/node_modules/npm-check-updates/build/src/types/Options.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/Options.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/PackageFile.d.ts +0 -24
- data/node_modules/npm-check-updates/build/src/types/PackageFile.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/PackageFile.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/PackageFileRepository.d.ts +0 -5
- data/node_modules/npm-check-updates/build/src/types/PackageFileRepository.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/PackageFileRepository.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/PackageInfo.d.ts +0 -8
- data/node_modules/npm-check-updates/build/src/types/PackageInfo.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/PackageInfo.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/PackageManager.d.ts +0 -18
- data/node_modules/npm-check-updates/build/src/types/PackageManager.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/PackageManager.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/PackageManagerName.d.ts +0 -2
- data/node_modules/npm-check-updates/build/src/types/PackageManagerName.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/PackageManagerName.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/Packument.d.ts +0 -13
- data/node_modules/npm-check-updates/build/src/types/Packument.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/Packument.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/RunOptions.d.ts +0 -137
- data/node_modules/npm-check-updates/build/src/types/RunOptions.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/RunOptions.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/SpawnOptions.d.ts +0 -6
- data/node_modules/npm-check-updates/build/src/types/SpawnOptions.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/SpawnOptions.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/StaticRegistry.d.ts +0 -4
- data/node_modules/npm-check-updates/build/src/types/StaticRegistry.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/StaticRegistry.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/Target.d.ts +0 -9
- data/node_modules/npm-check-updates/build/src/types/Target.js +0 -6
- data/node_modules/npm-check-updates/build/src/types/Target.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/TargetFunction.d.ts +0 -3
- data/node_modules/npm-check-updates/build/src/types/TargetFunction.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/TargetFunction.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/UpgradeGroup.d.ts +0 -1
- data/node_modules/npm-check-updates/build/src/types/UpgradeGroup.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/UpgradeGroup.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/Version.d.ts +0 -2
- data/node_modules/npm-check-updates/build/src/types/Version.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/Version.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/VersionLevel.d.ts +0 -2
- data/node_modules/npm-check-updates/build/src/types/VersionLevel.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/VersionLevel.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/VersionResult.d.ts +0 -7
- data/node_modules/npm-check-updates/build/src/types/VersionResult.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/VersionResult.js.map +0 -1
- data/node_modules/npm-check-updates/build/src/types/VersionSpec.d.ts +0 -2
- data/node_modules/npm-check-updates/build/src/types/VersionSpec.js +0 -3
- data/node_modules/npm-check-updates/build/src/types/VersionSpec.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/chalk/license +0 -9
- data/node_modules/npm-check-updates/node_modules/chalk/package.json +0 -83
- data/node_modules/npm-check-updates/node_modules/chalk/readme.md +0 -325
- data/node_modules/npm-check-updates/node_modules/chalk/source/index.d.ts +0 -320
- data/node_modules/npm-check-updates/node_modules/chalk/source/index.js +0 -225
- data/node_modules/npm-check-updates/node_modules/chalk/source/utilities.js +0 -33
- data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
- data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
- data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
- data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/supports-color/browser.js +0 -30
- data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
- data/node_modules/npm-check-updates/node_modules/chalk/source/vendor/supports-color/index.js +0 -182
- data/node_modules/npm-check-updates/node_modules/minimatch/LICENSE +0 -15
- data/node_modules/npm-check-updates/node_modules/minimatch/README.md +0 -454
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts +0 -2
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +0 -14
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/ast.d.ts +0 -19
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/ast.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/ast.js +0 -589
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/ast.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +0 -8
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/brace-expressions.js +0 -152
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/brace-expressions.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/escape.d.ts +0 -12
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/escape.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/escape.js +0 -22
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/escape.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/index.d.ts +0 -94
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/index.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/index.js +0 -1011
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/index.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/package.json +0 -3
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/unescape.d.ts +0 -17
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/unescape.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/unescape.js +0 -24
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/cjs/unescape.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts +0 -2
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +0 -10
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/ast.d.ts +0 -19
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/ast.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/ast.js +0 -585
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/ast.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +0 -8
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/brace-expressions.js +0 -148
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/brace-expressions.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/escape.d.ts +0 -12
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/escape.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/escape.js +0 -18
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/escape.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/index.d.ts +0 -94
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/index.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/index.js +0 -995
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/index.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/package.json +0 -3
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/unescape.d.ts +0 -17
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/unescape.d.ts.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/unescape.js +0 -20
- data/node_modules/npm-check-updates/node_modules/minimatch/dist/mjs/unescape.js.map +0 -1
- data/node_modules/npm-check-updates/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
- data/node_modules/npm-check-updates/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -135
- data/node_modules/npm-check-updates/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -203
- data/node_modules/npm-check-updates/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -46
- data/node_modules/npm-check-updates/node_modules/minimatch/package.json +0 -86
- data/node_modules/npm-check-updates/node_modules/strip-ansi/index.d.ts +0 -15
- data/node_modules/npm-check-updates/node_modules/strip-ansi/index.js +0 -14
- data/node_modules/npm-check-updates/node_modules/strip-ansi/license +0 -9
- data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/index.d.ts +0 -33
- data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/index.js +0 -8
- data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/license +0 -9
- data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/package.json +0 -58
- data/node_modules/npm-check-updates/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +0 -72
- data/node_modules/npm-check-updates/node_modules/strip-ansi/package.json +0 -57
- data/node_modules/npm-check-updates/node_modules/strip-ansi/readme.md +0 -41
- data/node_modules/rimraf/dist/commonjs/default-tmp.d.ts +0 -3
- data/node_modules/rimraf/dist/commonjs/default-tmp.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/default-tmp.js +0 -61
- data/node_modules/rimraf/dist/commonjs/default-tmp.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts +0 -3
- data/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/fix-eperm.js +0 -58
- data/node_modules/rimraf/dist/commonjs/fix-eperm.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/fs.d.ts +0 -17
- data/node_modules/rimraf/dist/commonjs/fs.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/fs.js +0 -46
- data/node_modules/rimraf/dist/commonjs/fs.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts +0 -3
- data/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/ignore-enoent.js +0 -21
- data/node_modules/rimraf/dist/commonjs/ignore-enoent.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/index.d.ts +0 -50
- data/node_modules/rimraf/dist/commonjs/index.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/index.js +0 -76
- data/node_modules/rimraf/dist/commonjs/index.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/opt-arg.d.ts +0 -35
- data/node_modules/rimraf/dist/commonjs/opt-arg.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/opt-arg.js +0 -53
- data/node_modules/rimraf/dist/commonjs/opt-arg.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/package.json +0 -1
- data/node_modules/rimraf/dist/commonjs/path-arg.d.ts +0 -4
- data/node_modules/rimraf/dist/commonjs/path-arg.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/path-arg.js +0 -54
- data/node_modules/rimraf/dist/commonjs/path-arg.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/platform.d.ts +0 -3
- data/node_modules/rimraf/dist/commonjs/platform.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/platform.js +0 -4
- data/node_modules/rimraf/dist/commonjs/platform.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts +0 -5
- data/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/readdir-or-error.js +0 -19
- data/node_modules/rimraf/dist/commonjs/readdir-or-error.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/retry-busy.d.ts +0 -8
- data/node_modules/rimraf/dist/commonjs/retry-busy.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/retry-busy.js +0 -68
- data/node_modules/rimraf/dist/commonjs/retry-busy.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts +0 -3
- data/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-manual.js +0 -12
- data/node_modules/rimraf/dist/commonjs/rimraf-manual.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts +0 -4
- data/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js +0 -192
- data/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts +0 -4
- data/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-native.js +0 -24
- data/node_modules/rimraf/dist/commonjs/rimraf-native.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts +0 -4
- data/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-posix.js +0 -123
- data/node_modules/rimraf/dist/commonjs/rimraf-posix.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts +0 -4
- data/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/rimraf-windows.js +0 -182
- data/node_modules/rimraf/dist/commonjs/rimraf-windows.js.map +0 -1
- data/node_modules/rimraf/dist/commonjs/use-native.d.ts +0 -4
- data/node_modules/rimraf/dist/commonjs/use-native.d.ts.map +0 -1
- data/node_modules/rimraf/dist/commonjs/use-native.js +0 -22
- data/node_modules/rimraf/dist/commonjs/use-native.js.map +0 -1
- data/node_modules/rimraf/dist/esm/bin.d.mts +0 -8
- data/node_modules/rimraf/dist/esm/bin.d.mts.map +0 -1
- data/node_modules/rimraf/dist/esm/bin.mjs +0 -256
- data/node_modules/rimraf/dist/esm/bin.mjs.map +0 -1
- data/node_modules/rimraf/dist/esm/default-tmp.d.ts +0 -3
- data/node_modules/rimraf/dist/esm/default-tmp.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/default-tmp.js +0 -55
- data/node_modules/rimraf/dist/esm/default-tmp.js.map +0 -1
- data/node_modules/rimraf/dist/esm/fix-eperm.d.ts +0 -3
- data/node_modules/rimraf/dist/esm/fix-eperm.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/fix-eperm.js +0 -53
- data/node_modules/rimraf/dist/esm/fix-eperm.js.map +0 -1
- data/node_modules/rimraf/dist/esm/fs.d.ts +0 -17
- data/node_modules/rimraf/dist/esm/fs.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/fs.js +0 -31
- data/node_modules/rimraf/dist/esm/fs.js.map +0 -1
- data/node_modules/rimraf/dist/esm/ignore-enoent.d.ts +0 -3
- data/node_modules/rimraf/dist/esm/ignore-enoent.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/ignore-enoent.js +0 -16
- data/node_modules/rimraf/dist/esm/ignore-enoent.js.map +0 -1
- data/node_modules/rimraf/dist/esm/index.d.ts +0 -50
- data/node_modules/rimraf/dist/esm/index.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/index.js +0 -68
- data/node_modules/rimraf/dist/esm/index.js.map +0 -1
- data/node_modules/rimraf/dist/esm/opt-arg.d.ts +0 -35
- data/node_modules/rimraf/dist/esm/opt-arg.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/opt-arg.js +0 -46
- data/node_modules/rimraf/dist/esm/opt-arg.js.map +0 -1
- data/node_modules/rimraf/dist/esm/package.json +0 -1
- data/node_modules/rimraf/dist/esm/path-arg.d.ts +0 -4
- data/node_modules/rimraf/dist/esm/path-arg.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/path-arg.js +0 -49
- data/node_modules/rimraf/dist/esm/path-arg.js.map +0 -1
- data/node_modules/rimraf/dist/esm/platform.d.ts +0 -3
- data/node_modules/rimraf/dist/esm/platform.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/platform.js +0 -2
- data/node_modules/rimraf/dist/esm/platform.js.map +0 -1
- data/node_modules/rimraf/dist/esm/readdir-or-error.d.ts +0 -5
- data/node_modules/rimraf/dist/esm/readdir-or-error.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/readdir-or-error.js +0 -14
- data/node_modules/rimraf/dist/esm/readdir-or-error.js.map +0 -1
- data/node_modules/rimraf/dist/esm/retry-busy.d.ts +0 -8
- data/node_modules/rimraf/dist/esm/retry-busy.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/retry-busy.js +0 -63
- data/node_modules/rimraf/dist/esm/retry-busy.js.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-manual.d.ts +0 -3
- data/node_modules/rimraf/dist/esm/rimraf-manual.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-manual.js +0 -6
- data/node_modules/rimraf/dist/esm/rimraf-manual.js.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts +0 -4
- data/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-move-remove.js +0 -187
- data/node_modules/rimraf/dist/esm/rimraf-move-remove.js.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-native.d.ts +0 -4
- data/node_modules/rimraf/dist/esm/rimraf-native.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-native.js +0 -19
- data/node_modules/rimraf/dist/esm/rimraf-native.js.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-posix.d.ts +0 -4
- data/node_modules/rimraf/dist/esm/rimraf-posix.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-posix.js +0 -118
- data/node_modules/rimraf/dist/esm/rimraf-posix.js.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-windows.d.ts +0 -4
- data/node_modules/rimraf/dist/esm/rimraf-windows.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/rimraf-windows.js +0 -177
- data/node_modules/rimraf/dist/esm/rimraf-windows.js.map +0 -1
- data/node_modules/rimraf/dist/esm/use-native.d.ts +0 -4
- data/node_modules/rimraf/dist/esm/use-native.d.ts.map +0 -1
- data/node_modules/rimraf/dist/esm/use-native.js +0 -16
- data/node_modules/rimraf/dist/esm/use-native.js.map +0 -1
- data/node_modules/semver/classes/comparator.js +0 -141
- data/node_modules/semver/classes/index.js +0 -5
- data/node_modules/semver/classes/range.js +0 -539
- data/node_modules/semver/classes/semver.js +0 -302
- data/node_modules/semver/functions/clean.js +0 -6
- data/node_modules/semver/functions/cmp.js +0 -52
- data/node_modules/semver/functions/coerce.js +0 -52
- data/node_modules/semver/functions/compare-build.js +0 -7
- data/node_modules/semver/functions/compare-loose.js +0 -3
- data/node_modules/semver/functions/compare.js +0 -5
- data/node_modules/semver/functions/diff.js +0 -65
- data/node_modules/semver/functions/eq.js +0 -3
- data/node_modules/semver/functions/gt.js +0 -3
- data/node_modules/semver/functions/gte.js +0 -3
- data/node_modules/semver/functions/inc.js +0 -19
- data/node_modules/semver/functions/lt.js +0 -3
- data/node_modules/semver/functions/lte.js +0 -3
- data/node_modules/semver/functions/major.js +0 -3
- data/node_modules/semver/functions/minor.js +0 -3
- data/node_modules/semver/functions/neq.js +0 -3
- data/node_modules/semver/functions/parse.js +0 -16
- data/node_modules/semver/functions/patch.js +0 -3
- data/node_modules/semver/functions/prerelease.js +0 -6
- data/node_modules/semver/functions/rcompare.js +0 -3
- data/node_modules/semver/functions/rsort.js +0 -3
- data/node_modules/semver/functions/satisfies.js +0 -10
- data/node_modules/semver/functions/sort.js +0 -3
- data/node_modules/semver/functions/valid.js +0 -6
- data/node_modules/semver/index.js +0 -89
- data/node_modules/semver/internal/constants.js +0 -35
- data/node_modules/semver/internal/debug.js +0 -9
- data/node_modules/semver/internal/identifiers.js +0 -23
- data/node_modules/semver/internal/parse-options.js +0 -15
- data/node_modules/semver/internal/re.js +0 -212
- data/node_modules/semver/node_modules/lru-cache/LICENSE +0 -15
- data/node_modules/semver/node_modules/lru-cache/README.md +0 -166
- data/node_modules/semver/node_modules/lru-cache/index.js +0 -334
- data/node_modules/semver/node_modules/lru-cache/package.json +0 -34
- data/node_modules/semver/preload.js +0 -2
- data/node_modules/semver/ranges/gtr.js +0 -4
- data/node_modules/semver/ranges/intersects.js +0 -7
- data/node_modules/semver/ranges/ltr.js +0 -4
- data/node_modules/semver/ranges/max-satisfying.js +0 -25
- data/node_modules/semver/ranges/min-satisfying.js +0 -24
- data/node_modules/semver/ranges/min-version.js +0 -61
- data/node_modules/semver/ranges/outside.js +0 -80
- data/node_modules/semver/ranges/simplify.js +0 -47
- data/node_modules/semver/ranges/subset.js +0 -247
- data/node_modules/semver/ranges/to-comparators.js +0 -8
- data/node_modules/semver/ranges/valid.js +0 -11
- /data/node_modules/{eslint/node_modules/chalk → chalk}/index.d.ts +0 -0
- /data/node_modules/{eslint/node_modules/chalk → chalk}/source/templates.js +0 -0
- /data/node_modules/{eslint/node_modules/chalk → chalk}/source/util.js +0 -0
- /data/node_modules/{@eslint/config-array/node_modules/minimatch → minimatch}/minimatch.js +0 -0
data/node_modules/glob/README.md
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
# Glob
|
2
2
|
|
3
|
-
Match files using the patterns the shell uses.
|
3
|
+
Match files using the patterns the shell uses, like stars and stuff.
|
4
4
|
|
5
|
-
|
6
|
-
JavaScript. (See **Comparison to Other JavaScript Glob
|
7
|
-
Implementations** at the bottom of this readme.)
|
5
|
+
[![Build Status](https://travis-ci.org/isaacs/node-glob.svg?branch=master)](https://travis-ci.org/isaacs/node-glob/) [![Build Status](https://ci.appveyor.com/api/projects/status/kd7f3yftf7unxlsx?svg=true)](https://ci.appveyor.com/project/isaacs/node-glob) [![Coverage Status](https://coveralls.io/repos/isaacs/node-glob/badge.svg?branch=master&service=github)](https://coveralls.io/github/isaacs/node-glob?branch=master)
|
8
6
|
|
9
|
-
|
7
|
+
This is a glob implementation in JavaScript. It uses the `minimatch`
|
8
|
+
library to do its matching.
|
9
|
+
|
10
|
+
![a fun cartoon logo made of glob characters](logo/glob.png)
|
10
11
|
|
11
12
|
## Usage
|
12
13
|
|
@@ -16,711 +17,305 @@ Install with npm
|
|
16
17
|
npm i glob
|
17
18
|
```
|
18
19
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
```js
|
23
|
-
// load using import
|
24
|
-
import { glob, globSync, globStream, globStreamSync, Glob } from 'glob'
|
25
|
-
// or using commonjs, that's fine, too
|
26
|
-
const {
|
27
|
-
glob,
|
28
|
-
globSync,
|
29
|
-
globStream,
|
30
|
-
globStreamSync,
|
31
|
-
Glob,
|
32
|
-
} = require('glob')
|
33
|
-
|
34
|
-
// the main glob() and globSync() resolve/return array of filenames
|
35
|
-
|
36
|
-
// all js files, but don't look in node_modules
|
37
|
-
const jsfiles = await glob('**/*.js', { ignore: 'node_modules/**' })
|
38
|
-
|
39
|
-
// pass in a signal to cancel the glob walk
|
40
|
-
const stopAfter100ms = await glob('**/*.css', {
|
41
|
-
signal: AbortSignal.timeout(100),
|
42
|
-
})
|
43
|
-
|
44
|
-
// multiple patterns supported as well
|
45
|
-
const images = await glob(['css/*.{png,jpeg}', 'public/*.{png,jpeg}'])
|
46
|
-
|
47
|
-
// but of course you can do that with the glob pattern also
|
48
|
-
// the sync function is the same, just returns a string[] instead
|
49
|
-
// of Promise<string[]>
|
50
|
-
const imagesAlt = globSync('{css,public}/*.{png,jpeg}')
|
51
|
-
|
52
|
-
// you can also stream them, this is a Minipass stream
|
53
|
-
const filesStream = globStream(['**/*.dat', 'logs/**/*.log'])
|
54
|
-
|
55
|
-
// construct a Glob object if you wanna do it that way, which
|
56
|
-
// allows for much faster walks if you have to look in the same
|
57
|
-
// folder multiple times.
|
58
|
-
const g = new Glob('**/foo', {})
|
59
|
-
// glob objects are async iterators, can also do globIterate() or
|
60
|
-
// g.iterate(), same deal
|
61
|
-
for await (const file of g) {
|
62
|
-
console.log('found a foo file:', file)
|
63
|
-
}
|
64
|
-
// pass a glob as the glob options to reuse its settings and caches
|
65
|
-
const g2 = new Glob('**/bar', g)
|
66
|
-
// sync iteration works as well
|
67
|
-
for (const file of g2) {
|
68
|
-
console.log('found a bar file:', file)
|
69
|
-
}
|
70
|
-
|
71
|
-
// you can also pass withFileTypes: true to get Path objects
|
72
|
-
// these are like a Dirent, but with some more added powers
|
73
|
-
// check out http://npm.im/path-scurry for more info on their API
|
74
|
-
const g3 = new Glob('**/baz/**', { withFileTypes: true })
|
75
|
-
g3.stream().on('data', path => {
|
76
|
-
console.log(
|
77
|
-
'got a path object',
|
78
|
-
path.fullpath(),
|
79
|
-
path.isDirectory(),
|
80
|
-
path.readdirSync().map(e => e.name)
|
81
|
-
)
|
82
|
-
})
|
83
|
-
|
84
|
-
// if you use stat:true and withFileTypes, you can sort results
|
85
|
-
// by things like modified time, filter by permission mode, etc.
|
86
|
-
// All Stats fields will be available in that case. Slightly
|
87
|
-
// slower, though.
|
88
|
-
// For example:
|
89
|
-
const results = await glob('**', { stat: true, withFileTypes: true })
|
90
|
-
|
91
|
-
const timeSortedFiles = results
|
92
|
-
.sort((a, b) => a.mtimeMs - b.mtimeMs)
|
93
|
-
.map(path => path.fullpath())
|
94
|
-
|
95
|
-
const groupReadableFiles = results
|
96
|
-
.filter(path => path.mode & 0o040)
|
97
|
-
.map(path => path.fullpath())
|
98
|
-
|
99
|
-
// custom ignores can be done like this, for example by saying
|
100
|
-
// you'll ignore all markdown files, and all folders named 'docs'
|
101
|
-
const customIgnoreResults = await glob('**', {
|
102
|
-
ignore: {
|
103
|
-
ignored: p => /\.md$/.test(p.name),
|
104
|
-
childrenIgnored: p => p.isNamed('docs'),
|
105
|
-
},
|
106
|
-
})
|
107
|
-
|
108
|
-
// another fun use case, only return files with the same name as
|
109
|
-
// their parent folder, plus either `.ts` or `.js`
|
110
|
-
const folderNamedModules = await glob('**/*.{ts,js}', {
|
111
|
-
ignore: {
|
112
|
-
ignored: p => {
|
113
|
-
const pp = p.parent
|
114
|
-
return !(p.isNamed(pp.name + '.ts') || p.isNamed(pp.name + '.js'))
|
115
|
-
},
|
116
|
-
},
|
117
|
-
})
|
20
|
+
```javascript
|
21
|
+
var glob = require("glob")
|
118
22
|
|
119
|
-
//
|
120
|
-
|
121
|
-
|
122
|
-
//
|
123
|
-
|
124
|
-
//
|
125
|
-
nodir: true,
|
126
|
-
ignore: {
|
127
|
-
ignored: p => {
|
128
|
-
return new Date() - p.mtime > 60 * 60 * 1000
|
129
|
-
},
|
130
|
-
// could add similar childrenIgnored here as well, but
|
131
|
-
// directory mtime is inconsistent across platforms, so
|
132
|
-
// probably better not to, unless you know the system
|
133
|
-
// tracks this reliably.
|
134
|
-
},
|
23
|
+
// options is optional
|
24
|
+
glob("**/*.js", options, function (er, files) {
|
25
|
+
// files is an array of filenames.
|
26
|
+
// If the `nonull` option is set, and nothing
|
27
|
+
// was found, then files is ["**/*.js"]
|
28
|
+
// er is an error object or null.
|
135
29
|
})
|
136
30
|
```
|
137
31
|
|
138
|
-
|
139
|
-
even on Windows systems, as `\` is used to escape glob
|
140
|
-
characters. If you wish to use `\` as a path separator _instead
|
141
|
-
of_ using it as an escape character on Windows platforms, you may
|
142
|
-
set `windowsPathsNoEscape:true` in the options. In this mode,
|
143
|
-
special glob characters cannot be escaped, making it impossible
|
144
|
-
to match a literal `*` `?` and so on in filenames.
|
145
|
-
|
146
|
-
## Command Line Interface
|
147
|
-
|
148
|
-
```
|
149
|
-
$ glob -h
|
150
|
-
|
151
|
-
Usage:
|
152
|
-
glob [options] [<pattern> [<pattern> ...]]
|
153
|
-
|
154
|
-
Expand the positional glob expression arguments into any matching file system
|
155
|
-
paths found.
|
156
|
-
|
157
|
-
-c<command> --cmd=<command>
|
158
|
-
Run the command provided, passing the glob expression
|
159
|
-
matches as arguments.
|
160
|
-
|
161
|
-
-A --all By default, the glob cli command will not expand any
|
162
|
-
arguments that are an exact match to a file on disk.
|
163
|
-
|
164
|
-
This prevents double-expanding, in case the shell
|
165
|
-
expands an argument whose filename is a glob
|
166
|
-
expression.
|
167
|
-
|
168
|
-
For example, if 'app/*.ts' would match 'app/[id].ts',
|
169
|
-
then on Windows powershell or cmd.exe, 'glob app/*.ts'
|
170
|
-
will expand to 'app/[id].ts', as expected. However, in
|
171
|
-
posix shells such as bash or zsh, the shell will first
|
172
|
-
expand 'app/*.ts' to a list of filenames. Then glob
|
173
|
-
will look for a file matching 'app/[id].ts' (ie,
|
174
|
-
'app/i.ts' or 'app/d.ts'), which is unexpected.
|
175
|
-
|
176
|
-
Setting '--all' prevents this behavior, causing glob to
|
177
|
-
treat ALL patterns as glob expressions to be expanded,
|
178
|
-
even if they are an exact match to a file on disk.
|
179
|
-
|
180
|
-
When setting this option, be sure to enquote arguments
|
181
|
-
so that the shell will not expand them prior to passing
|
182
|
-
them to the glob command process.
|
183
|
-
|
184
|
-
-a --absolute Expand to absolute paths
|
185
|
-
-d --dot-relative Prepend './' on relative matches
|
186
|
-
-m --mark Append a / on any directories matched
|
187
|
-
-x --posix Always resolve to posix style paths, using '/' as the
|
188
|
-
directory separator, even on Windows. Drive letter
|
189
|
-
absolute matches on Windows will be expanded to their
|
190
|
-
full resolved UNC maths, eg instead of 'C:\foo\bar', it
|
191
|
-
will expand to '//?/C:/foo/bar'.
|
192
|
-
|
193
|
-
-f --follow Follow symlinked directories when expanding '**'
|
194
|
-
-R --realpath Call 'fs.realpath' on all of the results. In the case
|
195
|
-
of an entry that cannot be resolved, the entry is
|
196
|
-
omitted. This incurs a slight performance penalty, of
|
197
|
-
course, because of the added system calls.
|
198
|
-
|
199
|
-
-s --stat Call 'fs.lstat' on all entries, whether required or not
|
200
|
-
to determine if it's a valid match.
|
201
|
-
|
202
|
-
-b --match-base Perform a basename-only match if the pattern does not
|
203
|
-
contain any slash characters. That is, '*.js' would be
|
204
|
-
treated as equivalent to '**/*.js', matching js files
|
205
|
-
in all directories.
|
206
|
-
|
207
|
-
--dot Allow patterns to match files/directories that start
|
208
|
-
with '.', even if the pattern does not start with '.'
|
209
|
-
|
210
|
-
--nobrace Do not expand {...} patterns
|
211
|
-
--nocase Perform a case-insensitive match. This defaults to
|
212
|
-
'true' on macOS and Windows platforms, and false on all
|
213
|
-
others.
|
214
|
-
|
215
|
-
Note: 'nocase' should only be explicitly set when it is
|
216
|
-
known that the filesystem's case sensitivity differs
|
217
|
-
from the platform default. If set 'true' on
|
218
|
-
case-insensitive file systems, then the walk may return
|
219
|
-
more or less results than expected.
|
220
|
-
|
221
|
-
--nodir Do not match directories, only files.
|
222
|
-
|
223
|
-
Note: to *only* match directories, append a '/' at the
|
224
|
-
end of the pattern.
|
225
|
-
|
226
|
-
--noext Do not expand extglob patterns, such as '+(a|b)'
|
227
|
-
--noglobstar Do not expand '**' against multiple path portions. Ie,
|
228
|
-
treat it as a normal '*' instead.
|
229
|
-
|
230
|
-
--windows-path-no-escape
|
231
|
-
Use '\' as a path separator *only*, and *never* as an
|
232
|
-
escape character. If set, all '\' characters are
|
233
|
-
replaced with '/' in the pattern.
|
234
|
-
|
235
|
-
-D<n> --max-depth=<n> Maximum depth to traverse from the current working
|
236
|
-
directory
|
237
|
-
|
238
|
-
-C<cwd> --cwd=<cwd> Current working directory to execute/match in
|
239
|
-
-r<root> --root=<root> A string path resolved against the 'cwd', which is used
|
240
|
-
as the starting point for absolute patterns that start
|
241
|
-
with '/' (but not drive letters or UNC paths on
|
242
|
-
Windows).
|
243
|
-
|
244
|
-
Note that this *doesn't* necessarily limit the walk to
|
245
|
-
the 'root' directory, and doesn't affect the cwd
|
246
|
-
starting point for non-absolute patterns. A pattern
|
247
|
-
containing '..' will still be able to traverse out of
|
248
|
-
the root directory, if it is not an actual root
|
249
|
-
directory on the filesystem, and any non-absolute
|
250
|
-
patterns will still be matched in the 'cwd'.
|
251
|
-
|
252
|
-
To start absolute and non-absolute patterns in the same
|
253
|
-
path, you can use '--root=' to set it to the empty
|
254
|
-
string. However, be aware that on Windows systems, a
|
255
|
-
pattern like 'x:/*' or '//host/share/*' will *always*
|
256
|
-
start in the 'x:/' or '//host/share/' directory,
|
257
|
-
regardless of the --root setting.
|
258
|
-
|
259
|
-
--platform=<platform> Defaults to the value of 'process.platform' if
|
260
|
-
available, or 'linux' if not. Setting --platform=win32
|
261
|
-
on non-Windows systems may cause strange behavior!
|
262
|
-
|
263
|
-
-i<ignore> --ignore=<ignore>
|
264
|
-
Glob patterns to ignore Can be set multiple times
|
265
|
-
-v --debug Output a huge amount of noisy debug information about
|
266
|
-
patterns as they are parsed and used to match files.
|
267
|
-
|
268
|
-
-h --help Show this usage information
|
269
|
-
```
|
270
|
-
|
271
|
-
## `glob(pattern: string | string[], options?: GlobOptions) => Promise<string[] | Path[]>`
|
272
|
-
|
273
|
-
Perform an asynchronous glob search for the pattern(s) specified.
|
274
|
-
Returns
|
275
|
-
[Path](https://isaacs.github.io/path-scurry/classes/PathBase)
|
276
|
-
objects if the `withFileTypes` option is set to `true`. See below
|
277
|
-
for full options field desciptions.
|
278
|
-
|
279
|
-
## `globSync(pattern: string | string[], options?: GlobOptions) => string[] | Path[]`
|
280
|
-
|
281
|
-
Synchronous form of `glob()`.
|
282
|
-
|
283
|
-
Alias: `glob.sync()`
|
284
|
-
|
285
|
-
## `globIterate(pattern: string | string[], options?: GlobOptions) => AsyncGenerator<string>`
|
286
|
-
|
287
|
-
Return an async iterator for walking glob pattern matches.
|
288
|
-
|
289
|
-
Alias: `glob.iterate()`
|
290
|
-
|
291
|
-
## `globIterateSync(pattern: string | string[], options?: GlobOptions) => Generator<string>`
|
292
|
-
|
293
|
-
Return a sync iterator for walking glob pattern matches.
|
294
|
-
|
295
|
-
Alias: `glob.iterate.sync()`, `glob.sync.iterate()`
|
296
|
-
|
297
|
-
## `globStream(pattern: string | string[], options?: GlobOptions) => Minipass<string | Path>`
|
298
|
-
|
299
|
-
Return a stream that emits all the strings or `Path` objects and
|
300
|
-
then emits `end` when completed.
|
301
|
-
|
302
|
-
Alias: `glob.stream()`
|
303
|
-
|
304
|
-
## `globStreamSync(pattern: string | string[], options?: GlobOptions) => Minipass<string | Path>`
|
305
|
-
|
306
|
-
Syncronous form of `globStream()`. Will read all the matches as
|
307
|
-
fast as you consume them, even all in a single tick if you
|
308
|
-
consume them immediately, but will still respond to backpressure
|
309
|
-
if they're not consumed immediately.
|
310
|
-
|
311
|
-
Alias: `glob.stream.sync()`, `glob.sync.stream()`
|
312
|
-
|
313
|
-
## `hasMagic(pattern: string | string[], options?: GlobOptions) => boolean`
|
314
|
-
|
315
|
-
Returns `true` if the provided pattern contains any "magic" glob
|
316
|
-
characters, given the options provided.
|
32
|
+
## Glob Primer
|
317
33
|
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
`
|
325
|
-
|
34
|
+
"Globs" are the patterns you type when you do stuff like `ls *.js` on
|
35
|
+
the command line, or put `build/*` in a `.gitignore` file.
|
36
|
+
|
37
|
+
Before parsing the path part patterns, braced sections are expanded
|
38
|
+
into a set. Braced sections start with `{` and end with `}`, with any
|
39
|
+
number of comma-delimited sections within. Braced sections may contain
|
40
|
+
slash characters, so `a{/b/c,bcd}` would expand into `a/b/c` and `abcd`.
|
41
|
+
|
42
|
+
The following characters have special magic meaning when used in a
|
43
|
+
path portion:
|
44
|
+
|
45
|
+
* `*` Matches 0 or more characters in a single path portion
|
46
|
+
* `?` Matches 1 character
|
47
|
+
* `[...]` Matches a range of characters, similar to a RegExp range.
|
48
|
+
If the first character of the range is `!` or `^` then it matches
|
49
|
+
any character not in the range.
|
50
|
+
* `!(pattern|pattern|pattern)` Matches anything that does not match
|
51
|
+
any of the patterns provided.
|
52
|
+
* `?(pattern|pattern|pattern)` Matches zero or one occurrence of the
|
53
|
+
patterns provided.
|
54
|
+
* `+(pattern|pattern|pattern)` Matches one or more occurrences of the
|
55
|
+
patterns provided.
|
56
|
+
* `*(a|b|c)` Matches zero or more occurrences of the patterns provided
|
57
|
+
* `@(pattern|pat*|pat?erN)` Matches exactly one of the patterns
|
58
|
+
provided
|
59
|
+
* `**` If a "globstar" is alone in a path portion, then it matches
|
60
|
+
zero or more directories and subdirectories searching for matches.
|
61
|
+
It does not crawl symlinked directories.
|
326
62
|
|
327
|
-
|
63
|
+
### Dots
|
328
64
|
|
329
|
-
|
330
|
-
|
65
|
+
If a file or directory path portion has a `.` as the first character,
|
66
|
+
then it will not match any glob pattern unless that pattern's
|
67
|
+
corresponding path part also has a `.` as its first character.
|
331
68
|
|
332
|
-
|
333
|
-
|
334
|
-
a
|
69
|
+
For example, the pattern `a/.*/c` would match the file at `a/.b/c`.
|
70
|
+
However the pattern `a/*/c` would not, because `*` does not start with
|
71
|
+
a dot character.
|
335
72
|
|
336
|
-
|
337
|
-
|
73
|
+
You can make glob treat dots as normal characters by setting
|
74
|
+
`dot:true` in the options.
|
338
75
|
|
339
|
-
|
76
|
+
### Basename Matching
|
340
77
|
|
341
|
-
|
78
|
+
If you set `matchBase:true` in the options, and the pattern has no
|
79
|
+
slashes in it, then it will seek for any file anywhere in the tree
|
80
|
+
with a matching basename. For example, `*.js` would match
|
81
|
+
`test/simple/basic.js`.
|
342
82
|
|
343
|
-
|
344
|
-
escapes are removed, but not backslash escapes. For example, it
|
345
|
-
will turn the string `'[*]'` into `*`, but it will not turn
|
346
|
-
`'\\*'` into `'*'`, because `\` is a path separator in
|
347
|
-
`windowsPathsNoEscape` mode.
|
83
|
+
### Empty Sets
|
348
84
|
|
349
|
-
|
350
|
-
|
85
|
+
If no matching files are found, then an empty array is returned. This
|
86
|
+
differs from the shell, where the pattern itself is returned. For
|
87
|
+
example:
|
351
88
|
|
352
|
-
|
353
|
-
|
89
|
+
$ echo a*s*d*f
|
90
|
+
a*s*d*f
|
354
91
|
|
355
|
-
|
92
|
+
To get the bash-style behavior, set the `nonull:true` in the options.
|
356
93
|
|
357
|
-
|
94
|
+
### See Also:
|
358
95
|
|
359
|
-
|
96
|
+
* `man sh`
|
97
|
+
* `man bash` (Search for "Pattern Matching")
|
98
|
+
* `man 3 fnmatch`
|
99
|
+
* `man 5 gitignore`
|
100
|
+
* [minimatch documentation](https://github.com/isaacs/minimatch)
|
360
101
|
|
361
|
-
|
102
|
+
## glob.hasMagic(pattern, [options])
|
362
103
|
|
363
|
-
|
104
|
+
Returns `true` if there are any special characters in the pattern, and
|
105
|
+
`false` otherwise.
|
364
106
|
|
365
|
-
Note that
|
366
|
-
|
367
|
-
|
107
|
+
Note that the options affect the results. If `noext:true` is set in
|
108
|
+
the options object, then `+(a|b)` will not be considered a magic
|
109
|
+
pattern. If the pattern has a brace expansion, like `a/{b/c,x/y}`
|
110
|
+
then that is considered magical, unless `nobrace:true` is set in the
|
111
|
+
options.
|
368
112
|
|
369
|
-
|
370
|
-
again.
|
113
|
+
## glob(pattern, [options], cb)
|
371
114
|
|
372
|
-
|
115
|
+
* `pattern` `{String}` Pattern to be matched
|
116
|
+
* `options` `{Object}`
|
117
|
+
* `cb` `{Function}`
|
118
|
+
* `err` `{Error | null}`
|
119
|
+
* `matches` `{Array<String>}` filenames found matching the pattern
|
373
120
|
|
374
|
-
|
121
|
+
Perform an asynchronous glob search.
|
375
122
|
|
376
|
-
|
123
|
+
## glob.sync(pattern, [options])
|
377
124
|
|
378
|
-
|
125
|
+
* `pattern` `{String}` Pattern to be matched
|
126
|
+
* `options` `{Object}`
|
127
|
+
* return: `{Array<String>}` filenames found matching the pattern
|
379
128
|
|
380
|
-
|
129
|
+
Perform a synchronous glob search.
|
381
130
|
|
382
|
-
|
383
|
-
iterates over the results.
|
131
|
+
## Class: glob.Glob
|
384
132
|
|
385
|
-
|
133
|
+
Create a Glob object by instantiating the `glob.Glob` class.
|
386
134
|
|
387
|
-
|
388
|
-
|
135
|
+
```javascript
|
136
|
+
var Glob = require("glob").Glob
|
137
|
+
var mg = new Glob(pattern, options, cb)
|
138
|
+
```
|
389
139
|
|
390
|
-
|
140
|
+
It's an EventEmitter, and starts walking the filesystem to find matches
|
141
|
+
immediately.
|
391
142
|
|
392
|
-
|
143
|
+
### new glob.Glob(pattern, [options], [cb])
|
393
144
|
|
394
|
-
|
145
|
+
* `pattern` `{String}` pattern to search for
|
146
|
+
* `options` `{Object}`
|
147
|
+
* `cb` `{Function}` Called when an error occurs, or matches are found
|
148
|
+
* `err` `{Error | null}`
|
149
|
+
* `matches` `{Array<String>}` filenames found matching the pattern
|
395
150
|
|
396
|
-
|
151
|
+
Note that if the `sync` flag is set in the options, then matches will
|
152
|
+
be immediately available on the `g.found` member.
|
397
153
|
|
398
154
|
### Properties
|
399
155
|
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
Only has effect on the {@link hasMagic} function, no effect on
|
470
|
-
glob pattern matching itself.
|
471
|
-
|
472
|
-
- `dotRelative` Prepend all relative path strings with `./` (or
|
473
|
-
`.\` on Windows).
|
474
|
-
|
475
|
-
Without this option, returned relative paths are "bare", so
|
476
|
-
instead of returning `'./foo/bar'`, they are returned as
|
477
|
-
`'foo/bar'`.
|
478
|
-
|
479
|
-
Relative patterns starting with `'../'` are not prepended with
|
480
|
-
`./`, even if this option is set.
|
481
|
-
|
482
|
-
- `mark` Add a `/` character to directory matches. Note that this
|
156
|
+
* `minimatch` The minimatch object that the glob uses.
|
157
|
+
* `options` The options object passed in.
|
158
|
+
* `aborted` Boolean which is set to true when calling `abort()`. There
|
159
|
+
is no way at this time to continue a glob search after aborting, but
|
160
|
+
you can re-use the statCache to avoid having to duplicate syscalls.
|
161
|
+
* `cache` Convenience object. Each field has the following possible
|
162
|
+
values:
|
163
|
+
* `false` - Path does not exist
|
164
|
+
* `true` - Path exists
|
165
|
+
* `'FILE'` - Path exists, and is not a directory
|
166
|
+
* `'DIR'` - Path exists, and is a directory
|
167
|
+
* `[file, entries, ...]` - Path exists, is a directory, and the
|
168
|
+
array value is the results of `fs.readdir`
|
169
|
+
* `statCache` Cache of `fs.stat` results, to prevent statting the same
|
170
|
+
path multiple times.
|
171
|
+
* `symlinks` A record of which paths are symbolic links, which is
|
172
|
+
relevant in resolving `**` patterns.
|
173
|
+
* `realpathCache` An optional object which is passed to `fs.realpath`
|
174
|
+
to minimize unnecessary syscalls. It is stored on the instantiated
|
175
|
+
Glob object, and may be re-used.
|
176
|
+
|
177
|
+
### Events
|
178
|
+
|
179
|
+
* `end` When the matching is finished, this is emitted with all the
|
180
|
+
matches found. If the `nonull` option is set, and no match was found,
|
181
|
+
then the `matches` list contains the original pattern. The matches
|
182
|
+
are sorted, unless the `nosort` flag is set.
|
183
|
+
* `match` Every time a match is found, this is emitted with the specific
|
184
|
+
thing that matched. It is not deduplicated or resolved to a realpath.
|
185
|
+
* `error` Emitted when an unexpected error is encountered, or whenever
|
186
|
+
any fs error occurs if `options.strict` is set.
|
187
|
+
* `abort` When `abort()` is called, this event is raised.
|
188
|
+
|
189
|
+
### Methods
|
190
|
+
|
191
|
+
* `pause` Temporarily stop the search
|
192
|
+
* `resume` Resume the search
|
193
|
+
* `abort` Stop the search forever
|
194
|
+
|
195
|
+
### Options
|
196
|
+
|
197
|
+
All the options that can be passed to Minimatch can also be passed to
|
198
|
+
Glob to change pattern matching behavior. Also, some have been added,
|
199
|
+
or have glob-specific ramifications.
|
200
|
+
|
201
|
+
All options are false by default, unless otherwise noted.
|
202
|
+
|
203
|
+
All options are added to the Glob object, as well.
|
204
|
+
|
205
|
+
If you are running many `glob` operations, you can pass a Glob object
|
206
|
+
as the `options` argument to a subsequent operation to shortcut some
|
207
|
+
`stat` and `readdir` calls. At the very least, you may pass in shared
|
208
|
+
`symlinks`, `statCache`, `realpathCache`, and `cache` options, so that
|
209
|
+
parallel glob operations will be sped up by sharing information about
|
210
|
+
the filesystem.
|
211
|
+
|
212
|
+
* `cwd` The current working directory in which to search. Defaults
|
213
|
+
to `process.cwd()`.
|
214
|
+
* `root` The place where patterns starting with `/` will be mounted
|
215
|
+
onto. Defaults to `path.resolve(options.cwd, "/")` (`/` on Unix
|
216
|
+
systems, and `C:\` or some such on Windows.)
|
217
|
+
* `dot` Include `.dot` files in normal matches and `globstar` matches.
|
218
|
+
Note that an explicit dot in a portion of the pattern will always
|
219
|
+
match dot files.
|
220
|
+
* `nomount` By default, a pattern starting with a forward-slash will be
|
221
|
+
"mounted" onto the root setting, so that a valid filesystem path is
|
222
|
+
returned. Set this flag to disable that behavior.
|
223
|
+
* `mark` Add a `/` character to directory matches. Note that this
|
483
224
|
requires additional stat calls.
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
225
|
+
* `nosort` Don't sort the results.
|
226
|
+
* `stat` Set to true to stat *all* results. This reduces performance
|
227
|
+
somewhat, and is completely unnecessary, unless `readdir` is presumed
|
228
|
+
to be an untrustworthy indicator of file existence.
|
229
|
+
* `silent` When an unusual error is encountered when attempting to
|
230
|
+
read a directory, a warning will be printed to stderr. Set the
|
231
|
+
`silent` option to true to suppress these warnings.
|
232
|
+
* `strict` When an unusual error is encountered when attempting to
|
233
|
+
read a directory, the process will just continue on in search of
|
234
|
+
other matches. Set the `strict` option to raise an error in these
|
235
|
+
cases.
|
236
|
+
* `cache` See `cache` property above. Pass in a previously generated
|
237
|
+
cache object to save some fs calls.
|
238
|
+
* `statCache` A cache of results of filesystem information, to prevent
|
239
|
+
unnecessary stat calls. While it should not normally be necessary
|
240
|
+
to set this, you may pass the statCache from one glob() call to the
|
241
|
+
options object of another, if you know that the filesystem will not
|
242
|
+
change between calls. (See "Race Conditions" below.)
|
243
|
+
* `symlinks` A cache of known symbolic links. You may pass in a
|
244
|
+
previously generated `symlinks` object to save `lstat` calls when
|
245
|
+
resolving `**` matches.
|
246
|
+
* `sync` DEPRECATED: use `glob.sync(pattern, opts)` instead.
|
247
|
+
* `nounique` In some cases, brace-expanded patterns can result in the
|
248
|
+
same file showing up multiple times in the result set. By default,
|
249
|
+
this implementation prevents duplicates in the result set. Set this
|
250
|
+
flag to disable that behavior.
|
251
|
+
* `nonull` Set to never return an empty set, instead returning a set
|
252
|
+
containing the pattern itself. This is the default in glob(3).
|
253
|
+
* `debug` Set to enable debug logging in minimatch and glob.
|
254
|
+
* `nobrace` Do not expand `{a,b}` and `{1..3}` brace sets.
|
255
|
+
* `noglobstar` Do not match `**` against multiple filenames. (Ie,
|
488
256
|
treat it as a normal `*` instead.)
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
to
|
514
|
-
`withFileTypes`, this means that matches will include data such
|
515
|
-
as modified time, permissions, and so on. Note that this will
|
516
|
-
incur a performance cost due to the added system calls.
|
517
|
-
|
518
|
-
- `ignore` string or string[], or an object with `ignore` and
|
519
|
-
`ignoreChildren` methods.
|
520
|
-
|
521
|
-
If a string or string[] is provided, then this is treated as a
|
522
|
-
glob pattern or array of glob patterns to exclude from matches.
|
523
|
-
To ignore all children within a directory, as well as the entry
|
524
|
-
itself, append `'/**'` to the ignore pattern.
|
525
|
-
|
526
|
-
**Note** `ignore` patterns are _always_ in `dot:true` mode,
|
527
|
-
regardless of any other settings.
|
528
|
-
|
529
|
-
If an object is provided that has `ignored(path)` and/or
|
530
|
-
`childrenIgnored(path)` methods, then these methods will be
|
531
|
-
called to determine whether any Path is a match or if its
|
532
|
-
children should be traversed, respectively.
|
533
|
-
|
534
|
-
- `follow` Follow symlinked directories when expanding `**`
|
535
|
-
patterns. This can result in a lot of duplicate references in
|
536
|
-
the presence of cyclic links, and make performance quite bad.
|
537
|
-
|
538
|
-
By default, a `**` in a pattern will follow 1 symbolic link if
|
539
|
-
it is not the first item in the pattern, or none if it is the
|
540
|
-
first item in the pattern, following the same behavior as Bash.
|
541
|
-
|
542
|
-
- `realpath` Set to true to call `fs.realpath` on all of the
|
543
|
-
results. In the case of an entry that cannot be resolved, the
|
544
|
-
entry is omitted. This incurs a slight performance penalty, of
|
545
|
-
course, because of the added system calls.
|
546
|
-
|
547
|
-
- `absolute` Set to true to always receive absolute paths for
|
548
|
-
matched files. Set to `false` to always receive relative paths
|
549
|
-
for matched files.
|
550
|
-
|
551
|
-
By default, when this option is not set, absolute paths are
|
552
|
-
returned for patterns that are absolute, and otherwise paths
|
553
|
-
are returned that are relative to the `cwd` setting.
|
554
|
-
|
555
|
-
This does _not_ make an extra system call to get the realpath,
|
556
|
-
it only does string path resolution.
|
557
|
-
|
558
|
-
`absolute` may not be used along with `withFileTypes`.
|
559
|
-
|
560
|
-
- `posix` Set to true to use `/` as the path separator in
|
561
|
-
returned results. On posix systems, this has no effect. On
|
562
|
-
Windows systems, this will return `/` delimited path results,
|
563
|
-
and absolute paths will be returned in their full resolved UNC
|
564
|
-
path form, eg insted of `'C:\\foo\\bar'`, it will return
|
565
|
-
`//?/C:/foo/bar`.
|
566
|
-
|
567
|
-
- `platform` Defaults to value of `process.platform` if
|
568
|
-
available, or `'linux'` if not. Setting `platform:'win32'` on
|
569
|
-
non-Windows systems may cause strange behavior.
|
570
|
-
|
571
|
-
- `withFileTypes` Return [PathScurry](http://npm.im/path-scurry)
|
572
|
-
`Path` objects instead of strings. These are similar to a
|
573
|
-
NodeJS `Dirent` object, but with additional methods and
|
574
|
-
properties.
|
575
|
-
|
576
|
-
`withFileTypes` may not be used along with `absolute`.
|
577
|
-
|
578
|
-
- `signal` An AbortSignal which will cancel the Glob walk when
|
579
|
-
triggered.
|
580
|
-
|
581
|
-
- `fs` An override object to pass in custom filesystem methods.
|
582
|
-
See [PathScurry docs](http://npm.im/path-scurry) for what can
|
583
|
-
be overridden.
|
584
|
-
|
585
|
-
- `scurry` A [PathScurry](http://npm.im/path-scurry) object used
|
586
|
-
to traverse the file system. If the `nocase` option is set
|
587
|
-
explicitly, then any provided `scurry` object must match this
|
588
|
-
setting.
|
589
|
-
|
590
|
-
## Glob Primer
|
591
|
-
|
592
|
-
Much more information about glob pattern expansion can be found
|
593
|
-
by running `man bash` and searching for `Pattern Matching`.
|
594
|
-
|
595
|
-
"Globs" are the patterns you type when you do stuff like `ls
|
596
|
-
*.js` on the command line, or put `build/*` in a `.gitignore`
|
597
|
-
file.
|
598
|
-
|
599
|
-
Before parsing the path part patterns, braced sections are
|
600
|
-
expanded into a set. Braced sections start with `{` and end with
|
601
|
-
`}`, with 2 or more comma-delimited sections within. Braced
|
602
|
-
sections may contain slash characters, so `a{/b/c,bcd}` would
|
603
|
-
expand into `a/b/c` and `abcd`.
|
604
|
-
|
605
|
-
The following characters have special magic meaning when used in
|
606
|
-
a path portion. With the exception of `**`, none of these match
|
607
|
-
path separators (ie, `/` on all platforms, and `\` on Windows).
|
608
|
-
|
609
|
-
- `*` Matches 0 or more characters in a single path portion.
|
610
|
-
When alone in a path portion, it must match at least 1
|
611
|
-
character. If `dot:true` is not specified, then `*` will not
|
612
|
-
match against a `.` character at the start of a path portion.
|
613
|
-
- `?` Matches 1 character. If `dot:true` is not specified, then
|
614
|
-
`?` will not match against a `.` character at the start of a
|
615
|
-
path portion.
|
616
|
-
- `[...]` Matches a range of characters, similar to a RegExp
|
617
|
-
range. If the first character of the range is `!` or `^` then
|
618
|
-
it matches any character not in the range. If the first
|
619
|
-
character is `]`, then it will be considered the same as `\]`,
|
620
|
-
rather than the end of the character class.
|
621
|
-
- `!(pattern|pattern|pattern)` Matches anything that does not
|
622
|
-
match any of the patterns provided. May _not_ contain `/`
|
623
|
-
characters. Similar to `*`, if alone in a path portion, then
|
624
|
-
the path portion must have at least one character.
|
625
|
-
- `?(pattern|pattern|pattern)` Matches zero or one occurrence of
|
626
|
-
the patterns provided. May _not_ contain `/` characters.
|
627
|
-
- `+(pattern|pattern|pattern)` Matches one or more occurrences of
|
628
|
-
the patterns provided. May _not_ contain `/` characters.
|
629
|
-
- `*(a|b|c)` Matches zero or more occurrences of the patterns
|
630
|
-
provided. May _not_ contain `/` characters.
|
631
|
-
- `@(pattern|pat*|pat?erN)` Matches exactly one of the patterns
|
632
|
-
provided. May _not_ contain `/` characters.
|
633
|
-
- `**` If a "globstar" is alone in a path portion, then it
|
634
|
-
matches zero or more directories and subdirectories searching
|
635
|
-
for matches. It does not crawl symlinked directories, unless
|
636
|
-
`{follow:true}` is passed in the options object. A pattern
|
637
|
-
like `a/b/**` will only match `a/b` if it is a directory.
|
638
|
-
Follows 1 symbolic link if not the first item in the pattern,
|
639
|
-
or 0 if it is the first item, unless `follow:true` is set, in
|
640
|
-
which case it follows all symbolic links.
|
641
|
-
|
642
|
-
`[:class:]` patterns are supported by this implementation, but
|
643
|
-
`[=c=]` and `[.symbol.]` style class patterns are not.
|
644
|
-
|
645
|
-
### Dots
|
646
|
-
|
647
|
-
If a file or directory path portion has a `.` as the first
|
648
|
-
character, then it will not match any glob pattern unless that
|
649
|
-
pattern's corresponding path part also has a `.` as its first
|
650
|
-
character.
|
651
|
-
|
652
|
-
For example, the pattern `a/.*/c` would match the file at
|
653
|
-
`a/.b/c`. However the pattern `a/*/c` would not, because `*` does
|
654
|
-
not start with a dot character.
|
655
|
-
|
656
|
-
You can make glob treat dots as normal characters by setting
|
657
|
-
`dot:true` in the options.
|
658
|
-
|
659
|
-
### Basename Matching
|
660
|
-
|
661
|
-
If you set `matchBase:true` in the options, and the pattern has
|
662
|
-
no slashes in it, then it will seek for any file anywhere in the
|
663
|
-
tree with a matching basename. For example, `*.js` would match
|
664
|
-
`test/simple/basic.js`.
|
665
|
-
|
666
|
-
### Empty Sets
|
667
|
-
|
668
|
-
If no matching files are found, then an empty array is returned.
|
669
|
-
This differs from the shell, where the pattern itself is
|
670
|
-
returned. For example:
|
671
|
-
|
672
|
-
```sh
|
673
|
-
$ echo a*s*d*f
|
674
|
-
a*s*d*f
|
675
|
-
```
|
257
|
+
* `noext` Do not match `+(a|b)` "extglob" patterns.
|
258
|
+
* `nocase` Perform a case-insensitive match. Note: on
|
259
|
+
case-insensitive filesystems, non-magic patterns will match by
|
260
|
+
default, since `stat` and `readdir` will not raise errors.
|
261
|
+
* `matchBase` Perform a basename-only match if the pattern does not
|
262
|
+
contain any slash characters. That is, `*.js` would be treated as
|
263
|
+
equivalent to `**/*.js`, matching all js files in all directories.
|
264
|
+
* `nodir` Do not match directories, only files. (Note: to match
|
265
|
+
*only* directories, simply put a `/` at the end of the pattern.)
|
266
|
+
* `ignore` Add a pattern or an array of glob patterns to exclude matches.
|
267
|
+
Note: `ignore` patterns are *always* in `dot:true` mode, regardless
|
268
|
+
of any other settings.
|
269
|
+
* `follow` Follow symlinked directories when expanding `**` patterns.
|
270
|
+
Note that this can result in a lot of duplicate references in the
|
271
|
+
presence of cyclic links.
|
272
|
+
* `realpath` Set to true to call `fs.realpath` on all of the results.
|
273
|
+
In the case of a symlink that cannot be resolved, the full absolute
|
274
|
+
path to the matched entry is returned (though it will usually be a
|
275
|
+
broken symlink)
|
276
|
+
* `absolute` Set to true to always receive absolute paths for matched
|
277
|
+
files. Unlike `realpath`, this also affects the values returned in
|
278
|
+
the `match` event.
|
279
|
+
* `fs` File-system object with Node's `fs` API. By default, the built-in
|
280
|
+
`fs` module will be used. Set to a volume provided by a library like
|
281
|
+
`memfs` to avoid using the "real" file-system.
|
676
282
|
|
677
283
|
## Comparisons to other fnmatch/glob implementations
|
678
284
|
|
679
|
-
While strict compliance with the existing standards is a
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
The double-star character `**` is supported by default, unless
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
`a
|
688
|
-
|
689
|
-
Note that symlinked directories are not
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
valid, matching proceeds.
|
705
|
-
|
706
|
-
The character class patterns `[:class:]` (posix standard named
|
707
|
-
classes) style class patterns are supported and unicode-aware,
|
708
|
-
but `[=c=]` (locale-specific character collation weight), and
|
709
|
-
`[.symbol.]` (collating symbol), are not.
|
710
|
-
|
711
|
-
### Repeated Slashes
|
712
|
-
|
713
|
-
Unlike Bash and zsh, repeated `/` are always coalesced into a
|
714
|
-
single path separator.
|
285
|
+
While strict compliance with the existing standards is a worthwhile
|
286
|
+
goal, some discrepancies exist between node-glob and other
|
287
|
+
implementations, and are intentional.
|
288
|
+
|
289
|
+
The double-star character `**` is supported by default, unless the
|
290
|
+
`noglobstar` flag is set. This is supported in the manner of bsdglob
|
291
|
+
and bash 4.3, where `**` only has special significance if it is the only
|
292
|
+
thing in a path part. That is, `a/**/b` will match `a/x/y/b`, but
|
293
|
+
`a/**b` will not.
|
294
|
+
|
295
|
+
Note that symlinked directories are not crawled as part of a `**`,
|
296
|
+
though their contents may match against subsequent portions of the
|
297
|
+
pattern. This prevents infinite loops and duplicates and the like.
|
298
|
+
|
299
|
+
If an escaped pattern has no matches, and the `nonull` flag is set,
|
300
|
+
then glob returns the pattern as-provided, rather than
|
301
|
+
interpreting the character escapes. For example,
|
302
|
+
`glob.match([], "\\*a\\?")` will return `"\\*a\\?"` rather than
|
303
|
+
`"*a?"`. This is akin to setting the `nullglob` option in bash, except
|
304
|
+
that it does not resolve escaped pattern characters.
|
305
|
+
|
306
|
+
If brace expansion is not disabled, then it is performed before any
|
307
|
+
other interpretation of the glob pattern. Thus, a pattern like
|
308
|
+
`+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded
|
309
|
+
**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are
|
310
|
+
checked for validity. Since those two are valid, matching proceeds.
|
715
311
|
|
716
312
|
### Comments and Negation
|
717
313
|
|
718
|
-
Previously, this module let you mark a pattern as a "comment" if
|
719
|
-
|
720
|
-
|
314
|
+
Previously, this module let you mark a pattern as a "comment" if it
|
315
|
+
started with a `#` character, or a "negated" pattern if it started
|
316
|
+
with a `!` character.
|
721
317
|
|
722
|
-
These options were deprecated in version 5, and removed in
|
723
|
-
version 6.
|
318
|
+
These options were deprecated in version 5, and removed in version 6.
|
724
319
|
|
725
320
|
To specify things that should not match, use the `ignore` option.
|
726
321
|
|
@@ -728,487 +323,56 @@ To specify things that should not match, use the `ignore` option.
|
|
728
323
|
|
729
324
|
**Please only use forward-slashes in glob expressions.**
|
730
325
|
|
731
|
-
Though windows uses either `/` or `\` as its path separator, only
|
732
|
-
|
733
|
-
forward-slashes **only** in glob expressions.
|
734
|
-
|
735
|
-
|
736
|
-
Results from absolute patterns such as `/foo/*` are mounted onto
|
737
|
-
the root setting using `path.join`. On windows, this will by
|
738
|
-
default result in `/foo/*` matching `C:\foo\bar.txt`.
|
739
|
-
|
740
|
-
To automatically coerce all `\` characters to `/` in pattern
|
741
|
-
strings, **thus making it impossible to escape literal glob
|
742
|
-
characters**, you may set the `windowsPathsNoEscape` option to
|
743
|
-
`true`.
|
326
|
+
Though windows uses either `/` or `\` as its path separator, only `/`
|
327
|
+
characters are used by this glob implementation. You must use
|
328
|
+
forward-slashes **only** in glob expressions. Back-slashes will always
|
329
|
+
be interpreted as escape characters, not path separators.
|
744
330
|
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
option is ignored, and the traversal starts at `/`, plus any
|
749
|
-
non-magic path portions specified in the pattern.
|
750
|
-
|
751
|
-
On Windows systems, the behavior is similar, but the concept of
|
752
|
-
an "absolute path" is somewhat more involved.
|
753
|
-
|
754
|
-
#### UNC Paths
|
755
|
-
|
756
|
-
A UNC path may be used as the start of a pattern on Windows
|
757
|
-
platforms. For example, a pattern like: `//?/x:/*` will return
|
758
|
-
all file entries in the root of the `x:` drive. A pattern like
|
759
|
-
`//ComputerName/Share/*` will return all files in the associated
|
760
|
-
share.
|
761
|
-
|
762
|
-
UNC path roots are always compared case insensitively.
|
763
|
-
|
764
|
-
#### Drive Letters
|
765
|
-
|
766
|
-
A pattern starting with a drive letter, like `c:/*`, will search
|
767
|
-
in that drive, regardless of any `cwd` option provided.
|
768
|
-
|
769
|
-
If the pattern starts with `/`, and is not a UNC path, and there
|
770
|
-
is an explicit `cwd` option set with a drive letter, then the
|
771
|
-
drive letter in the `cwd` is used as the root of the directory
|
772
|
-
traversal.
|
773
|
-
|
774
|
-
For example, `glob('/tmp', { cwd: 'c:/any/thing' })` will return
|
775
|
-
`['c:/tmp']` as the result.
|
776
|
-
|
777
|
-
If an explicit `cwd` option is not provided, and the pattern
|
778
|
-
starts with `/`, then the traversal will run on the root of the
|
779
|
-
drive provided as the `cwd` option. (That is, it is the result of
|
780
|
-
`path.resolve('/')`.)
|
331
|
+
Results from absolute patterns such as `/foo/*` are mounted onto the
|
332
|
+
root setting using `path.join`. On windows, this will by default result
|
333
|
+
in `/foo/*` matching `C:\foo\bar.txt`.
|
781
334
|
|
782
335
|
## Race Conditions
|
783
336
|
|
784
|
-
Glob searching, by its very nature, is susceptible to race
|
785
|
-
|
337
|
+
Glob searching, by its very nature, is susceptible to race conditions,
|
338
|
+
since it relies on directory walking and such.
|
786
339
|
|
787
|
-
As a result, it is possible that a file that exists when glob
|
788
|
-
|
789
|
-
returns the result.
|
340
|
+
As a result, it is possible that a file that exists when glob looks for
|
341
|
+
it may have been deleted or modified by the time it returns the result.
|
790
342
|
|
791
|
-
|
792
|
-
makes, in order to cut down on system
|
793
|
-
also makes it even more susceptible to races,
|
794
|
-
cache
|
343
|
+
As part of its internal implementation, this program caches all stat
|
344
|
+
and readdir calls that it makes, in order to cut down on system
|
345
|
+
overhead. However, this also makes it even more susceptible to races,
|
346
|
+
especially if the cache or statCache objects are reused between glob
|
347
|
+
calls.
|
795
348
|
|
796
349
|
Users are thus advised not to use a glob result as a guarantee of
|
797
|
-
filesystem state in the face of rapid changes.
|
798
|
-
|
799
|
-
|
800
|
-
### See Also:
|
801
|
-
|
802
|
-
- `man sh`
|
803
|
-
- `man bash` [Pattern
|
804
|
-
Matching](https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html)
|
805
|
-
- `man 3 fnmatch`
|
806
|
-
- `man 5 gitignore`
|
807
|
-
- [minimatch documentation](https://github.com/isaacs/minimatch)
|
350
|
+
filesystem state in the face of rapid changes. For the vast majority
|
351
|
+
of operations, this is never a problem.
|
808
352
|
|
809
353
|
## Glob Logo
|
354
|
+
Glob's logo was created by [Tanya Brassie](http://tanyabrassie.com/). Logo files can be found [here](https://github.com/isaacs/node-glob/tree/master/logo).
|
810
355
|
|
811
|
-
|
812
|
-
Brassie](http://tanyabrassie.com/). Logo files can be found
|
813
|
-
[here](https://github.com/isaacs/node-glob/tree/master/logo).
|
814
|
-
|
815
|
-
The logo is licensed under a [Creative Commons
|
816
|
-
Attribution-ShareAlike 4.0 International
|
817
|
-
License](https://creativecommons.org/licenses/by-sa/4.0/).
|
356
|
+
The logo is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/).
|
818
357
|
|
819
358
|
## Contributing
|
820
359
|
|
821
|
-
Any change to behavior (including bugfixes) must come with a
|
822
|
-
test.
|
360
|
+
Any change to behavior (including bugfixes) must come with a test.
|
823
361
|
|
824
362
|
Patches that fail tests or reduce performance will be rejected.
|
825
363
|
|
826
|
-
```
|
364
|
+
```
|
827
365
|
# to run tests
|
828
366
|
npm test
|
829
367
|
|
830
368
|
# to re-generate test fixtures
|
831
369
|
npm run test-regen
|
832
370
|
|
833
|
-
#
|
371
|
+
# to benchmark against bash/zsh
|
834
372
|
npm run bench
|
835
373
|
|
836
374
|
# to profile javascript
|
837
375
|
npm run prof
|
838
376
|
```
|
839
377
|
|
840
|
-
|
841
|
-
|
842
|
-
**tl;dr**
|
843
|
-
|
844
|
-
- If you want glob matching that is as faithful as possible to
|
845
|
-
Bash pattern expansion semantics, and as fast as possible
|
846
|
-
within that constraint, _use this module_.
|
847
|
-
- If you are reasonably sure that the patterns you will encounter
|
848
|
-
are relatively simple, and want the absolutely fastest glob
|
849
|
-
matcher out there, _use [fast-glob](http://npm.im/fast-glob)_.
|
850
|
-
- If you are reasonably sure that the patterns you will encounter
|
851
|
-
are relatively simple, and want the convenience of
|
852
|
-
automatically respecting `.gitignore` files, _use
|
853
|
-
[globby](http://npm.im/globby)_.
|
854
|
-
|
855
|
-
There are some other glob matcher libraries on npm, but these
|
856
|
-
three are (in my opinion, as of 2023) the best.
|
857
|
-
|
858
|
-
---
|
859
|
-
|
860
|
-
**full explanation**
|
861
|
-
|
862
|
-
Every library reflects a set of opinions and priorities in the
|
863
|
-
trade-offs it makes. Other than this library, I can personally
|
864
|
-
recommend both [globby](http://npm.im/globby) and
|
865
|
-
[fast-glob](http://npm.im/fast-glob), though they differ in their
|
866
|
-
benefits and drawbacks.
|
867
|
-
|
868
|
-
Both have very nice APIs and are reasonably fast.
|
869
|
-
|
870
|
-
`fast-glob` is, as far as I am aware, the fastest glob
|
871
|
-
implementation in JavaScript today. However, there are many
|
872
|
-
cases where the choices that `fast-glob` makes in pursuit of
|
873
|
-
speed mean that its results differ from the results returned by
|
874
|
-
Bash and other sh-like shells, which may be surprising.
|
875
|
-
|
876
|
-
In my testing, `fast-glob` is around 10-20% faster than this
|
877
|
-
module when walking over 200k files nested 4 directories
|
878
|
-
deep[1](#fn-webscale). However, there are some inconsistencies
|
879
|
-
with Bash matching behavior that this module does not suffer
|
880
|
-
from:
|
881
|
-
|
882
|
-
- `**` only matches files, not directories
|
883
|
-
- `..` path portions are not handled unless they appear at the
|
884
|
-
start of the pattern
|
885
|
-
- `./!(<pattern>)` will not match any files that _start_ with
|
886
|
-
`<pattern>`, even if they do not match `<pattern>`. For
|
887
|
-
example, `!(9).txt` will not match `9999.txt`.
|
888
|
-
- Some brace patterns in the middle of a pattern will result in
|
889
|
-
failing to find certain matches.
|
890
|
-
- Extglob patterns are allowed to contain `/` characters.
|
891
|
-
|
892
|
-
Globby exhibits all of the same pattern semantics as fast-glob,
|
893
|
-
(as it is a wrapper around fast-glob) and is slightly slower than
|
894
|
-
node-glob (by about 10-20% in the benchmark test set, or in other
|
895
|
-
words, anywhere from 20-50% slower than fast-glob). However, it
|
896
|
-
adds some API conveniences that may be worth the costs.
|
897
|
-
|
898
|
-
- Support for `.gitignore` and other ignore files.
|
899
|
-
- Support for negated globs (ie, patterns starting with `!`
|
900
|
-
rather than using a separate `ignore` option).
|
901
|
-
|
902
|
-
The priority of this module is "correctness" in the sense of
|
903
|
-
performing a glob pattern expansion as faithfully as possible to
|
904
|
-
the behavior of Bash and other sh-like shells, with as much speed
|
905
|
-
as possible.
|
906
|
-
|
907
|
-
Note that prior versions of `node-glob` are _not_ on this list.
|
908
|
-
Former versions of this module are far too slow for any cases
|
909
|
-
where performance matters at all, and were designed with APIs
|
910
|
-
that are extremely dated by current JavaScript standards.
|
911
|
-
|
912
|
-
---
|
913
|
-
|
914
|
-
<small id="fn-webscale">[1]: In the cases where this module
|
915
|
-
returns results and `fast-glob` doesn't, it's even faster, of
|
916
|
-
course.</small>
|
917
|
-
|
918
|
-
![lumpy space princess saying 'oh my GLOB'](https://github.com/isaacs/node-glob/raw/main/oh-my-glob.gif)
|
919
|
-
|
920
|
-
### Benchmark Results
|
921
|
-
|
922
|
-
First number is time, smaller is better.
|
923
|
-
|
924
|
-
Second number is the count of results returned.
|
925
|
-
|
926
|
-
```
|
927
|
-
--- pattern: '**' ---
|
928
|
-
~~ sync ~~
|
929
|
-
node fast-glob sync 0m0.598s 200364
|
930
|
-
node globby sync 0m0.765s 200364
|
931
|
-
node current globSync mjs 0m0.683s 222656
|
932
|
-
node current glob syncStream 0m0.649s 222656
|
933
|
-
~~ async ~~
|
934
|
-
node fast-glob async 0m0.350s 200364
|
935
|
-
node globby async 0m0.509s 200364
|
936
|
-
node current glob async mjs 0m0.463s 222656
|
937
|
-
node current glob stream 0m0.411s 222656
|
938
|
-
|
939
|
-
--- pattern: '**/..' ---
|
940
|
-
~~ sync ~~
|
941
|
-
node fast-glob sync 0m0.486s 0
|
942
|
-
node globby sync 0m0.769s 200364
|
943
|
-
node current globSync mjs 0m0.564s 2242
|
944
|
-
node current glob syncStream 0m0.583s 2242
|
945
|
-
~~ async ~~
|
946
|
-
node fast-glob async 0m0.283s 0
|
947
|
-
node globby async 0m0.512s 200364
|
948
|
-
node current glob async mjs 0m0.299s 2242
|
949
|
-
node current glob stream 0m0.312s 2242
|
950
|
-
|
951
|
-
--- pattern: './**/0/**/0/**/0/**/0/**/*.txt' ---
|
952
|
-
~~ sync ~~
|
953
|
-
node fast-glob sync 0m0.490s 10
|
954
|
-
node globby sync 0m0.517s 10
|
955
|
-
node current globSync mjs 0m0.540s 10
|
956
|
-
node current glob syncStream 0m0.550s 10
|
957
|
-
~~ async ~~
|
958
|
-
node fast-glob async 0m0.290s 10
|
959
|
-
node globby async 0m0.296s 10
|
960
|
-
node current glob async mjs 0m0.278s 10
|
961
|
-
node current glob stream 0m0.302s 10
|
962
|
-
|
963
|
-
--- pattern: './**/[01]/**/[12]/**/[23]/**/[45]/**/*.txt' ---
|
964
|
-
~~ sync ~~
|
965
|
-
node fast-glob sync 0m0.500s 160
|
966
|
-
node globby sync 0m0.528s 160
|
967
|
-
node current globSync mjs 0m0.556s 160
|
968
|
-
node current glob syncStream 0m0.573s 160
|
969
|
-
~~ async ~~
|
970
|
-
node fast-glob async 0m0.283s 160
|
971
|
-
node globby async 0m0.301s 160
|
972
|
-
node current glob async mjs 0m0.306s 160
|
973
|
-
node current glob stream 0m0.322s 160
|
974
|
-
|
975
|
-
--- pattern: './**/0/**/0/**/*.txt' ---
|
976
|
-
~~ sync ~~
|
977
|
-
node fast-glob sync 0m0.502s 5230
|
978
|
-
node globby sync 0m0.527s 5230
|
979
|
-
node current globSync mjs 0m0.544s 5230
|
980
|
-
node current glob syncStream 0m0.557s 5230
|
981
|
-
~~ async ~~
|
982
|
-
node fast-glob async 0m0.285s 5230
|
983
|
-
node globby async 0m0.305s 5230
|
984
|
-
node current glob async mjs 0m0.304s 5230
|
985
|
-
node current glob stream 0m0.310s 5230
|
986
|
-
|
987
|
-
--- pattern: '**/*.txt' ---
|
988
|
-
~~ sync ~~
|
989
|
-
node fast-glob sync 0m0.580s 200023
|
990
|
-
node globby sync 0m0.771s 200023
|
991
|
-
node current globSync mjs 0m0.685s 200023
|
992
|
-
node current glob syncStream 0m0.649s 200023
|
993
|
-
~~ async ~~
|
994
|
-
node fast-glob async 0m0.349s 200023
|
995
|
-
node globby async 0m0.509s 200023
|
996
|
-
node current glob async mjs 0m0.427s 200023
|
997
|
-
node current glob stream 0m0.388s 200023
|
998
|
-
|
999
|
-
--- pattern: '{**/*.txt,**/?/**/*.txt,**/?/**/?/**/*.txt,**/?/**/?/**/?/**/*.txt,**/?/**/?/**/?/**/?/**/*.txt}' ---
|
1000
|
-
~~ sync ~~
|
1001
|
-
node fast-glob sync 0m0.589s 200023
|
1002
|
-
node globby sync 0m0.771s 200023
|
1003
|
-
node current globSync mjs 0m0.716s 200023
|
1004
|
-
node current glob syncStream 0m0.684s 200023
|
1005
|
-
~~ async ~~
|
1006
|
-
node fast-glob async 0m0.351s 200023
|
1007
|
-
node globby async 0m0.518s 200023
|
1008
|
-
node current glob async mjs 0m0.462s 200023
|
1009
|
-
node current glob stream 0m0.468s 200023
|
1010
|
-
|
1011
|
-
--- pattern: '**/5555/0000/*.txt' ---
|
1012
|
-
~~ sync ~~
|
1013
|
-
node fast-glob sync 0m0.496s 1000
|
1014
|
-
node globby sync 0m0.519s 1000
|
1015
|
-
node current globSync mjs 0m0.539s 1000
|
1016
|
-
node current glob syncStream 0m0.567s 1000
|
1017
|
-
~~ async ~~
|
1018
|
-
node fast-glob async 0m0.285s 1000
|
1019
|
-
node globby async 0m0.299s 1000
|
1020
|
-
node current glob async mjs 0m0.305s 1000
|
1021
|
-
node current glob stream 0m0.301s 1000
|
1022
|
-
|
1023
|
-
--- pattern: './**/0/**/../[01]/**/0/../**/0/*.txt' ---
|
1024
|
-
~~ sync ~~
|
1025
|
-
node fast-glob sync 0m0.484s 0
|
1026
|
-
node globby sync 0m0.507s 0
|
1027
|
-
node current globSync mjs 0m0.577s 4880
|
1028
|
-
node current glob syncStream 0m0.586s 4880
|
1029
|
-
~~ async ~~
|
1030
|
-
node fast-glob async 0m0.280s 0
|
1031
|
-
node globby async 0m0.298s 0
|
1032
|
-
node current glob async mjs 0m0.327s 4880
|
1033
|
-
node current glob stream 0m0.324s 4880
|
1034
|
-
|
1035
|
-
--- pattern: '**/????/????/????/????/*.txt' ---
|
1036
|
-
~~ sync ~~
|
1037
|
-
node fast-glob sync 0m0.547s 100000
|
1038
|
-
node globby sync 0m0.673s 100000
|
1039
|
-
node current globSync mjs 0m0.626s 100000
|
1040
|
-
node current glob syncStream 0m0.618s 100000
|
1041
|
-
~~ async ~~
|
1042
|
-
node fast-glob async 0m0.315s 100000
|
1043
|
-
node globby async 0m0.414s 100000
|
1044
|
-
node current glob async mjs 0m0.366s 100000
|
1045
|
-
node current glob stream 0m0.345s 100000
|
1046
|
-
|
1047
|
-
--- pattern: './{**/?{/**/?{/**/?{/**/?,,,,},,,,},,,,},,,}/**/*.txt' ---
|
1048
|
-
~~ sync ~~
|
1049
|
-
node fast-glob sync 0m0.588s 100000
|
1050
|
-
node globby sync 0m0.670s 100000
|
1051
|
-
node current globSync mjs 0m0.717s 200023
|
1052
|
-
node current glob syncStream 0m0.687s 200023
|
1053
|
-
~~ async ~~
|
1054
|
-
node fast-glob async 0m0.343s 100000
|
1055
|
-
node globby async 0m0.418s 100000
|
1056
|
-
node current glob async mjs 0m0.519s 200023
|
1057
|
-
node current glob stream 0m0.451s 200023
|
1058
|
-
|
1059
|
-
--- pattern: '**/!(0|9).txt' ---
|
1060
|
-
~~ sync ~~
|
1061
|
-
node fast-glob sync 0m0.573s 160023
|
1062
|
-
node globby sync 0m0.731s 160023
|
1063
|
-
node current globSync mjs 0m0.680s 180023
|
1064
|
-
node current glob syncStream 0m0.659s 180023
|
1065
|
-
~~ async ~~
|
1066
|
-
node fast-glob async 0m0.345s 160023
|
1067
|
-
node globby async 0m0.476s 160023
|
1068
|
-
node current glob async mjs 0m0.427s 180023
|
1069
|
-
node current glob stream 0m0.388s 180023
|
1070
|
-
|
1071
|
-
--- pattern: './{*/**/../{*/**/../{*/**/../{*/**/../{*/**,,,,},,,,},,,,},,,,},,,,}/*.txt' ---
|
1072
|
-
~~ sync ~~
|
1073
|
-
node fast-glob sync 0m0.483s 0
|
1074
|
-
node globby sync 0m0.512s 0
|
1075
|
-
node current globSync mjs 0m0.811s 200023
|
1076
|
-
node current glob syncStream 0m0.773s 200023
|
1077
|
-
~~ async ~~
|
1078
|
-
node fast-glob async 0m0.280s 0
|
1079
|
-
node globby async 0m0.299s 0
|
1080
|
-
node current glob async mjs 0m0.617s 200023
|
1081
|
-
node current glob stream 0m0.568s 200023
|
1082
|
-
|
1083
|
-
--- pattern: './*/**/../*/**/../*/**/../*/**/../*/**/../*/**/../*/**/../*/**/*.txt' ---
|
1084
|
-
~~ sync ~~
|
1085
|
-
node fast-glob sync 0m0.485s 0
|
1086
|
-
node globby sync 0m0.507s 0
|
1087
|
-
node current globSync mjs 0m0.759s 200023
|
1088
|
-
node current glob syncStream 0m0.740s 200023
|
1089
|
-
~~ async ~~
|
1090
|
-
node fast-glob async 0m0.281s 0
|
1091
|
-
node globby async 0m0.297s 0
|
1092
|
-
node current glob async mjs 0m0.544s 200023
|
1093
|
-
node current glob stream 0m0.464s 200023
|
1094
|
-
|
1095
|
-
--- pattern: './*/**/../*/**/../*/**/../*/**/../*/**/*.txt' ---
|
1096
|
-
~~ sync ~~
|
1097
|
-
node fast-glob sync 0m0.486s 0
|
1098
|
-
node globby sync 0m0.513s 0
|
1099
|
-
node current globSync mjs 0m0.734s 200023
|
1100
|
-
node current glob syncStream 0m0.696s 200023
|
1101
|
-
~~ async ~~
|
1102
|
-
node fast-glob async 0m0.286s 0
|
1103
|
-
node globby async 0m0.296s 0
|
1104
|
-
node current glob async mjs 0m0.506s 200023
|
1105
|
-
node current glob stream 0m0.483s 200023
|
1106
|
-
|
1107
|
-
--- pattern: './0/**/../1/**/../2/**/../3/**/../4/**/../5/**/../6/**/../7/**/*.txt' ---
|
1108
|
-
~~ sync ~~
|
1109
|
-
node fast-glob sync 0m0.060s 0
|
1110
|
-
node globby sync 0m0.074s 0
|
1111
|
-
node current globSync mjs 0m0.067s 0
|
1112
|
-
node current glob syncStream 0m0.066s 0
|
1113
|
-
~~ async ~~
|
1114
|
-
node fast-glob async 0m0.060s 0
|
1115
|
-
node globby async 0m0.075s 0
|
1116
|
-
node current glob async mjs 0m0.066s 0
|
1117
|
-
node current glob stream 0m0.067s 0
|
1118
|
-
|
1119
|
-
--- pattern: './**/?/**/?/**/?/**/?/**/*.txt' ---
|
1120
|
-
~~ sync ~~
|
1121
|
-
node fast-glob sync 0m0.568s 100000
|
1122
|
-
node globby sync 0m0.651s 100000
|
1123
|
-
node current globSync mjs 0m0.619s 100000
|
1124
|
-
node current glob syncStream 0m0.617s 100000
|
1125
|
-
~~ async ~~
|
1126
|
-
node fast-glob async 0m0.332s 100000
|
1127
|
-
node globby async 0m0.409s 100000
|
1128
|
-
node current glob async mjs 0m0.372s 100000
|
1129
|
-
node current glob stream 0m0.351s 100000
|
1130
|
-
|
1131
|
-
--- pattern: '**/*/**/*/**/*/**/*/**' ---
|
1132
|
-
~~ sync ~~
|
1133
|
-
node fast-glob sync 0m0.603s 200113
|
1134
|
-
node globby sync 0m0.798s 200113
|
1135
|
-
node current globSync mjs 0m0.730s 222137
|
1136
|
-
node current glob syncStream 0m0.693s 222137
|
1137
|
-
~~ async ~~
|
1138
|
-
node fast-glob async 0m0.356s 200113
|
1139
|
-
node globby async 0m0.525s 200113
|
1140
|
-
node current glob async mjs 0m0.508s 222137
|
1141
|
-
node current glob stream 0m0.455s 222137
|
1142
|
-
|
1143
|
-
--- pattern: './**/*/**/*/**/*/**/*/**/*.txt' ---
|
1144
|
-
~~ sync ~~
|
1145
|
-
node fast-glob sync 0m0.622s 200000
|
1146
|
-
node globby sync 0m0.792s 200000
|
1147
|
-
node current globSync mjs 0m0.722s 200000
|
1148
|
-
node current glob syncStream 0m0.695s 200000
|
1149
|
-
~~ async ~~
|
1150
|
-
node fast-glob async 0m0.369s 200000
|
1151
|
-
node globby async 0m0.527s 200000
|
1152
|
-
node current glob async mjs 0m0.502s 200000
|
1153
|
-
node current glob stream 0m0.481s 200000
|
1154
|
-
|
1155
|
-
--- pattern: '**/*.txt' ---
|
1156
|
-
~~ sync ~~
|
1157
|
-
node fast-glob sync 0m0.588s 200023
|
1158
|
-
node globby sync 0m0.771s 200023
|
1159
|
-
node current globSync mjs 0m0.684s 200023
|
1160
|
-
node current glob syncStream 0m0.658s 200023
|
1161
|
-
~~ async ~~
|
1162
|
-
node fast-glob async 0m0.352s 200023
|
1163
|
-
node globby async 0m0.516s 200023
|
1164
|
-
node current glob async mjs 0m0.432s 200023
|
1165
|
-
node current glob stream 0m0.384s 200023
|
1166
|
-
|
1167
|
-
--- pattern: './**/**/**/**/**/**/**/**/*.txt' ---
|
1168
|
-
~~ sync ~~
|
1169
|
-
node fast-glob sync 0m0.589s 200023
|
1170
|
-
node globby sync 0m0.766s 200023
|
1171
|
-
node current globSync mjs 0m0.682s 200023
|
1172
|
-
node current glob syncStream 0m0.652s 200023
|
1173
|
-
~~ async ~~
|
1174
|
-
node fast-glob async 0m0.352s 200023
|
1175
|
-
node globby async 0m0.523s 200023
|
1176
|
-
node current glob async mjs 0m0.436s 200023
|
1177
|
-
node current glob stream 0m0.380s 200023
|
1178
|
-
|
1179
|
-
--- pattern: '**/*/*.txt' ---
|
1180
|
-
~~ sync ~~
|
1181
|
-
node fast-glob sync 0m0.592s 200023
|
1182
|
-
node globby sync 0m0.776s 200023
|
1183
|
-
node current globSync mjs 0m0.691s 200023
|
1184
|
-
node current glob syncStream 0m0.659s 200023
|
1185
|
-
~~ async ~~
|
1186
|
-
node fast-glob async 0m0.357s 200023
|
1187
|
-
node globby async 0m0.513s 200023
|
1188
|
-
node current glob async mjs 0m0.471s 200023
|
1189
|
-
node current glob stream 0m0.424s 200023
|
1190
|
-
|
1191
|
-
--- pattern: '**/*/**/*.txt' ---
|
1192
|
-
~~ sync ~~
|
1193
|
-
node fast-glob sync 0m0.585s 200023
|
1194
|
-
node globby sync 0m0.766s 200023
|
1195
|
-
node current globSync mjs 0m0.694s 200023
|
1196
|
-
node current glob syncStream 0m0.664s 200023
|
1197
|
-
~~ async ~~
|
1198
|
-
node fast-glob async 0m0.350s 200023
|
1199
|
-
node globby async 0m0.514s 200023
|
1200
|
-
node current glob async mjs 0m0.472s 200023
|
1201
|
-
node current glob stream 0m0.424s 200023
|
1202
|
-
|
1203
|
-
--- pattern: '**/[0-9]/**/*.txt' ---
|
1204
|
-
~~ sync ~~
|
1205
|
-
node fast-glob sync 0m0.544s 100000
|
1206
|
-
node globby sync 0m0.636s 100000
|
1207
|
-
node current globSync mjs 0m0.626s 100000
|
1208
|
-
node current glob syncStream 0m0.621s 100000
|
1209
|
-
~~ async ~~
|
1210
|
-
node fast-glob async 0m0.322s 100000
|
1211
|
-
node globby async 0m0.404s 100000
|
1212
|
-
node current glob async mjs 0m0.360s 100000
|
1213
|
-
node current glob stream 0m0.352s 100000
|
1214
|
-
```
|
378
|
+
![](oh-my-glob.gif)
|