Glob all the patterns!
multi-glob is a small wrapper around node-glob <https://github.com/isaacs/node-glob>_ that allows you to glob multiple
patterns in one go, and optionally treat it as a failure if any one pattern
matches no files.
If you just need to glob multiple patterns in one go, you can simply do:
var glob = require("glob");
glob(["all", "the", "patterns"], cb);However, with multi-glob, you can do a "strict" glob, which will cause an
error if e.g. the pattern "the" in the previous example matched no files.
Works like node-glob's glob, with the following two exceptions:
patternsmay be either a string pattern or an array of string patternsoptionsmay includestrict. When set totrue,globwill yield an error if either one ofpatternsmatches no files.