rhodonite
    Preparing search index...

    Function detectFormatByUri

    • Detects the file format based on the URI's file extension.

      Parameters

      • uri: string

        The URI string to analyze for format detection

      Returns string

      A string representing the detected format name, or 'Unknown' if no supported format is detected

      const format = detectFormatByUri('path/to/model.gltf');
      console.log(format); // 'glTF'