code: function globalyzer(pattern, opts = {}) {
    let base = parent(pattern, opts);
    let isGlob = isglob(pattern, opts);
    let glob;
  
    if (base != '.') {
      glob = pattern.substr(base.length);
      if (glob.startsWith('/')) glob = glob.substr(1);
    } else {
      glob = pattern;
    }
  
    if (!isGlob) {
      base = path.dirname(pattern);
      glob = base !== '.' ? pattern.substr(base.length) : pattern;
    }
  
    if (glob.startsWith('./')) glob = glob.substr(2);
    if (glob.startsWith('/')) glob = glob.substr(1);
  
    return { base, glob, isGlob };
  }
docs: Parse a glob path, and split it by static/glob part
  @param {String} pattern String path
  @param {Object} [opts] Options
  @param {Object} [opts.strict=false] Use strict parsing
  @returns {Object} object with parsed path