code: function register(pack) {
                      // cancel timeout
                      if (timer) {
                          clearTimeout(timer);
                          timer = null;
                      }
  
                      if (pack === false) {
                          return;
                      }
  
                      if (typeof name === "string") {
                          packages.set(name, pack);
                          events.emit("load:" + name, packages.get(name));
                      }
  
                      return succeed(pack);
                  }
docs: register package