Skip to content

santoslove/data-url-embedder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

A Lua script which naively tries to embed locally referenced files into an HTML page using data URLs.

Usage:

lua dataurl.lua input.html output.html

Example input:

<html>
    <img src="image.png">
</html>

Example output:

<html>
    <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAADAQMAAABh+Fe7AAAABlBMVEX/AP////+fGDLgAAAADklEQVQI12MIYBBgCAAAAhYAsR0KavoAAAAASUVORK5CYII=" download="image.png">
</html>

This code is public domain, please do whatever you want with it.

About

Embeds files into HTML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages