Skip to main content

🦕 datauri

Deno module to generate Data URI scheme.

.github/workflows/deno.yml

The data URI scheme is a uniform resource identifier (URI) scheme that provides a way to include data in-line in web pages as if they were external resources.

from: Wikipedia

Usage

import { datauri } from "https://deno.land/x/datauri/mod.ts";

const str = await datauri("assets/image.gif");
console.log(helloWorld); // data:image/gif,base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7

License

MIT License

(c) Data-URI.js

(c) Helder Santana