-
-
Notifications
You must be signed in to change notification settings - Fork 37.3k
Replacement for minimatch #52779
Copy link
Copy link
Closed
Labels
feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.pathIssues and PRs related to the path subsystem.Issues and PRs related to the path subsystem.
Description
Activity
Metadata
Metadata
Assignees
Labels
feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.pathIssues and PRs related to the path subsystem.Issues and PRs related to the path subsystem.
What is the problem this feature will solve?
It is great that now in Node 22 there is
fs.glob. But it seems that also replacement forminimatchis required. Otherwise, I don't know how to useexcludefunction fromfs.globoptions, because it is a frequent scenario when I need to use some glob pattern to exclude files.What is the feature you are proposing to solve the problem?
I propose to export some helper that matches path string and glob pattern (maybe from
pathmodule).What alternatives have you considered?
The only alternative I see for now is use
minimatchpackage (or package that similar to it).