Function convert

  • Convert content from one format to another.

    Parameters

    • input: string

      The input content (raw or file path).

    • Optional outputPaths: string | string[]

      The output file path/s.

    • options: ConvertOptions = {}

      Conversion options e.g from and to: to specify the formats to convert from/to

    Returns Promise<string | undefined>

    The converted content, or file path (for converters that only write to files).

Generated using TypeDoc