Wildcard-match takes one or more basic glob patterns, compiles them into a RegExp and returns a function for matching strings with it.