{"category":"web","endpoint":"https://setget.net/v1/tools/glob-test","examples":[{"input":{"paths":["src/app.js","src/lib/util.ts","src/lib/readme.md","test/app.js"],"pattern":"src/**/*.{js,ts}"},"output":{"count":2,"matched":["src/app.js","src/lib/util.ts"],"results":[{"matches":true,"path":"src/app.js"},{"matches":true,"path":"src/lib/util.ts"},{"matches":false,"path":"src/lib/readme.md"},{"matches":false,"path":"test/app.js"}]}},{"input":{"paths":["notes.txt","docs/notes.txt",".hidden.txt"],"pattern":"*.txt"},"output":{"count":1,"matched":["notes.txt"],"results":[{"matches":true,"path":"notes.txt"},{"matches":false,"path":"docs/notes.txt"},{"matches":false,"path":".hidden.txt"}]},"title":"A single star stays inside one folder"}],"input_schema":{"additionalProperties":false,"properties":{"case_sensitive":{"default":true,"description":"Treat upper and lower case as different.","type":"boolean"},"dot":{"default":false,"description":"Let * and ** match names that start with a dot, such as .env.","type":"boolean"},"paths":{"description":"The paths to test, with forward slashes.","examples":[["src/app.js","src/lib/util.ts","test/app.js"]],"maxItems":1000,"type":"array"},"pattern":{"description":"The glob pattern.","examples":["src/**/*.{js,ts}"],"maxLength":500,"type":"string"}},"required":["pattern","paths"],"type":"object"},"keywords":["glob","wildcard","file pattern","minimatch","globstar","double star","match files","fnmatch"],"related":["gitignore-test","regex-test","robots-test"],"slug":"glob-test","summary":"Test file paths against a glob pattern with *, ?, **, {a,b} alternatives and [a-z] character classes.","tier":"inline","title":"Glob pattern tester","url":"https://setget.net/tools/glob-test"}
