Skip to content

Instantly share code, notes, and snippets.

@Izhaki
Created August 31, 2019 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Izhaki/8b7c6fe284c45fbce6e7eb24acc85983 to your computer and use it in GitHub Desktop.
Save Izhaki/8b7c6fe284c45fbce6e7eb24acc85983 to your computer and use it in GitHub Desktop.
Tiny script to test glob matches
var glob = require('glob');
const pattern = 'docs/**/*.js?(x)';
glob(pattern, function(er, files) {
console.log(files);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment