Skip to content

doc: document glob pattern syntax for fs.glob#62245

Open
kovan wants to merge 1 commit intonodejs:mainfrom
kovan:glob-pattern-docs
Open

doc: document glob pattern syntax for fs.glob#62245
kovan wants to merge 1 commit intonodejs:mainfrom
kovan:glob-pattern-docs

Conversation

@kovan
Copy link
Contributor

@kovan kovan commented Mar 13, 2026

The fs.glob API was marked stable in v24 but the pattern parameter
lacked any description of supported syntax. This adds:

  • Pattern syntax reference table (*, ?, [abc], **, {a,b})
  • Platform behavior notes (case sensitivity on macOS/Windows vs Linux)
  • Cross-reference to path.matchesGlob()
  • Array.fromAsync collection example
  • Pattern syntax cross-references from fs.glob() (callback) and fs.globSync()

Refs: #58981
Continues the work from #58988

🤖 Generated with Claude Code

The fs.glob API was marked stable in v24 but the pattern parameter
lacked any description of supported syntax. Add a pattern syntax
reference table, platform behavior notes, a cross-reference to
path.matchesGlob(), and an Array.fromAsync example. Also add pattern
syntax cross-references from fs.glob() (callback) and fs.globSync().

Refs: nodejs#58981
Continues the work from nodejs#58988
@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. fs Issues and PRs related to the fs subsystem / file system. labels Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. fs Issues and PRs related to the fs subsystem / file system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants