Hierarchy (view full)

Constructors

Properties

options: {}

Type declaration

    all: any[] = []
    defaultOptions: {
        stringify: {
            replacer: any;
            space: string;
        };
    } = ...

    Type declaration

    • stringify: {
          replacer: any;
          space: string;
      }
      • replacer: any
      • space: string
    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

    Generated using TypeDoc