Created
August 31, 2019 15:50
-
-
Save Izhaki/8b7c6fe284c45fbce6e7eb24acc85983 to your computer and use it in GitHub Desktop.
Tiny script to test glob matches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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