code: function requireToPackage(d) {
    d = d.split('/');
    if (d[0].startsWith('@')) {
      return d.slice(0, 2).join('/');
    }
  
    return d[0];
  }
docs: Translates a required filename into a package name
  @param {strig} d
  @returns {string}