MiscellaneousGlob Patterns Tester

Glob Patterns Tester

Tool for testing glob patterns

/
  • src
    • services
      • storage.js
      • rest-client.ts
      • auth.ts
    • index.tsx
    • components
      • button.tsx
    • assets
      • styles
        • reset.css
        • index.scss
        • dark-theme.css
      • images
        • logo.png
        • icons
          • favicon.ico
          • button.svg
          • button.png
          • button.jpg
  • README.md
  • public
    • manifest.json
    • index.html
  • package.json
  • node_modules
    • npm_module
      • index.js
    • @vendor
      • pkg
        • license.md
        • index.js
        • dest
          • index.min.js
  • license.md
  • config
    • staging.js
    • production.js
    • integration.js
  • .gitignore

What is Globbing?

The term "globbing" , is a programming concept that describes the process of using wildcards, for matching file paths.
For example, the following bash shell command:
cp *.mp3 ./music
will copy all files haveing .mp3 extension to the music folder.
In that context *.mp3 is the glob pattern and it will match all the files in the current working directory that have .mp3 extension.

What is this tool?

This tool visualise glob pattern matching so you can test glob patterns easily.
Enter an glob pattern in the text field above and all matched files in the file tree will be highlighted in pinks.

Cheat Sheet

Glob PatternDescription
**/images/**/*.{png,svg}Match png and svg files within the images folder and its descendants
/*.mdMatch md files in the root folder
*.{js,jsx,ts,tsx,md,html}Match js, jsx, ts, tsx, md and html files in the root folder and its descendants
**/license.*Match files with the name license - regardless its extension
**/!(*.min).jsMatch js files in the root folder and its descendants, but dont match min.js files
**/node_modules/!(vendor)/**.jsMatch js files in the descendants of node_modules except the vendor folder
/{,!(node_modules)/**/}*.{js,ts}Match ts and js files in all of the folders recursively except node_modules