code: function isPathAbsolute(path) {
      // Based on: https://github.com/sindresorhus/path-is-absolute
      if (process.platform === 'win32') {
          const result = npm.patterns.splitDevice.exec(path);
          const device = result[1] || '';
          const isUnc = !!device && device.charAt(1) !== ':';
          return !!result[2] || isUnc;
      }
      return path.charAt(0) === '/';
  }
docs: ///////////////////////////////////////////////////////////////////////// Checks if the path is absolute;  Though we do test it, we still skip it from the coverage, because it is platform-specific.  istanbul ignore next