Title: fs.glob is stable as of v24 but lacks any documentation regarding `pattern` argument · Issue #58981 · nodejs/node · GitHub
Open Graph Title: fs.glob is stable as of v24 but lacks any documentation regarding `pattern` argument · Issue #58981 · nodejs/node
X Title: fs.glob is stable as of v24 but lacks any documentation regarding `pattern` argument · Issue #58981 · nodejs/node
Description: Affected URL(s) https://nodejs.org/docs/latest/api/fs.html#fsglobpattern-options-callback Description of the problem Love that native glob support came to node, however fs.glob is stable as of v24 but lacks documentation regarding patter...
Open Graph Description: Affected URL(s) https://nodejs.org/docs/latest/api/fs.html#fsglobpattern-options-callback Description of the problem Love that native glob support came to node, however fs.glob is stable as of v24 ...
X Description: Affected URL(s) https://nodejs.org/docs/latest/api/fs.html#fsglobpattern-options-callback Description of the problem Love that native glob support came to node, however fs.glob is stable as of v24 ...
Opengraph URL: https://github.com/nodejs/node/issues/58981
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fs.glob is stable as of v24 but lacks any documentation regarding `pattern` argument","articleBody":"### Affected URL(s)\n\nhttps://nodejs.org/docs/latest/api/fs.html#fsglobpattern-options-callback \n\n### Description of the problem\n\nLove that native glob support came to node, however fs.glob is stable as of v24 but lacks documentation regarding `pattern` argument which is confusing, unhelpful and deterring adoption if you come from plethora of user land implementations. For once it prevents me from using it in my cli (edit files by glob patterns), because I can't tell to my cli's users how to write the patterns.\n\nI'm looking for documentation for glob's aspects: platform support, performance, supported features.\n\nI'd love to see following popular features mentioned. It will help to know if feature is supported or not, if there any caveats and examples showcasing how feature works.\n\n* Brace Expansion (`foo/{1..5}.md`, `bar/{a,b,c}.js`)\n* Extended glob matching, [extglobs](https://www.npmjs.com/package/micromatch#extglobs) (`+(x|y)`, `!(a|b)`)\n* \"Globstar\" ** matching, wildcards (`**`, `*.js`)\n* [Posix character classes](https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html) (`[[:alpha:][:digit:]]`)\n* Support for multiple glob patterns\n* Negation (`'!a/*.js'`, `'*!(b).js'`)\n* regex character classes (`foo-[1-5].js`)\n* regex logical \"or\" (`foo/(abc|xyz).js`)\n\nComparison examples with user land libraries like glob, minimatch, micromatch, fast-glob will be helpful too.\n\nMaybe text based matching (without `fs` or `path` involved) can be moved to `global` or `utils` packages and documented in depth there?","author":{"url":"https://github.com/iamstarkov","@type":"Person","name":"iamstarkov"},"datePublished":"2025-07-07T13:21:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/58981/node/issues/58981"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9107da48-52c8-7f91-2e72-7ea9b9a24a01 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8922:379A70:1E399F4:2B5FC9F:6A4CEE49 |
| html-safe-nonce | cc84c3d28e363582a81547fb736968be41e4f4b073b4424888adc020f4e86527 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTIyOjM3OUE3MDoxRTM5OUY0OjJCNUZDOUY6NkE0Q0VFNDkiLCJ2aXNpdG9yX2lkIjoiNDA4MjMwMjQzNzY2OTU1NTkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 07e3329a0a4c5f48c045858b9b835677493e1efaa09f50760b9fcd749d311947 |
| hovercard-subject-tag | issue:3209024782 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/58981/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e8561578776a0c2ce3b6ffb311df7b25b607e2748471ea48f429041df9fb6f6c/nodejs/node/issues/58981 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e8561578776a0c2ce3b6ffb311df7b25b607e2748471ea48f429041df9fb6f6c/nodejs/node/issues/58981 |
| og:image:alt | Affected URL(s) https://nodejs.org/docs/latest/api/fs.html#fsglobpattern-options-callback Description of the problem Love that native glob support came to node, however fs.glob is stable as of v24 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iamstarkov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | efec6750a5afcaeaf5dfcf629f404cf98c8371e3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width