code: async function isInPattern(filePath, pattern, options, callback) {
    if (!pattern) {
      callback(null, false);
    } else {
      options = options || {};
      // var result = false;
      var isDirectory = await exports.isDirectory(filePath);
      if (isDirectory) {
        options.includeFolders = true;
      }
      if (!Array.isArray(pattern)) {
        var inPattern = await isInPatternSingle(filePath, pattern, options);
        callback(null, inPattern);
      } else {
        var isIn = false;
        for (const patt of pattern) {
          var inPattern = await isInPatternSingle(filePath, patt, options);
          if (inPattern) {
            isIn = true;
          }
        }
        callback(null, isIn);
      }
    }
  }
docs: /*
  @function isInPattern {boolean} (public) [Check if a given path belongs to a pattern]
  @param filePath {string} [Path to file]
  @param pattern {string or string[]}
  @param options {object} [exlude:files to exclude from search]
  @param callback