Skip to main content
Module

x/bb64/mod.ts>Base64#toStringWithMime

Easy to use Deno Base64 Encoder and Decoder for JavaScript and TypeScript
Latest
method Base64.prototype.toStringWithMime
import { Base64 } from "https://deno.land/x/bb64@1.1.0/mod.ts";

Returns the base64 encoded string from the Base64 object, with the inclusion of the MIME type if the Base64 object was created from a file (and if not created from a file, works the same as the .toString() method)

Returns

string

a base64 encoded string with MIME type included when from a file