Belin.io Core
    Preparing search index...

    Function toDataUrl

    • Reads the file at the specified path, and converts its contents into a data URL.

      Parameters

      • path: PathLike

        The path of the file to read.

      • mediaType: string

        The media type to associate with the data URL.

      Returns Promise<URL>

      The data URL corresponding to the given file.