Hierarchy (view full)

Constructors

Properties

options: {}

Type declaration

    all: any[] = []
    defaultOptions: {} = {}

    Type declaration

      extensions: string[] = ...
      mimeTypes: string[] = ...

      Methods

      • Find a registered Format by its name, MIME type, or extension

        Parameters

        • criteria: any

          If string, searches by name, MIME type, or extension, prioritizing name matches. If object, searches by the specific criteria provided.

        • Optional o: {
              require: boolean;
          }

          Options

          • require: boolean

            If true, throws an error if no format is found

        Returns any

      • Parameters

        • str: any
        • options: any

        Returns Record<string, TomlPrimitive>

      Generated using TypeDoc