Skip to main content
Docs/Reference/Glob Patterns

Glob Pattern Reference

CodePus uses glob patterns in many places to match files.

Syntax

PatternDescription
*Matches zero or more characters
?Matches a single character
**Matches zero or more directories
{a,b}Matches a or b
[abc]Matches a, b, or c

Examples

  • **/*.ts: All TypeScript files
  • src/**: All files under src directory
  • !**/node_modules/**: Exclude node_modules