code: function toAbsPath(reqStr, extraPath, domain) {
    if (domainPresent.test(reqStr)) {
      domain = reqStr.match(domainPresent)[1]; // override current domain if explicitly specified
      if (!isAbsolute(reqStr)) {
        error("does not allow cross-domain relative requires (" + reqStr + ")");
      }
      return [stripDomain(reqStr), domain];
    }
    else if (isAbsolute(reqStr)) {
      // special case absolutes from npm domain
      // this sandboxes the npm domain (sensible)
      if (domain === 'npm') {
        return [reqStr, 'npm']; // explicit npms need to be handled elsewhere
      }
      else {
        return [reqStr, null];
      }
    }
    else {
      return [join(extraPath, reqStr), domain];
    }
  }
docs: toAbsPath
  
  converts a generic detective request string to an absolute one
  throws if it receives an obviously bad request
  
  @[in] reqStr - raw request string
  @[in] extraPath - path of requiree's relative position to domain root
  @[in] domain
   absolutizes a path - special cases the npm domain