Convert files to data: URLs
Find a file
2025-06-01 16:23:58 -07:00
.forgejo/workflows Update .forgejo/workflows/package.yml 2025-06-01 16:19:39 -07:00
.github/workflows Update .github/workflows/windows.yml 2025-06-01 16:17:39 -07:00
locales Add locales/es.yml 2025-05-29 20:00:16 -07:00
pkg Update pkg/deb/DEBIAN/control 2025-05-28 19:53:34 -07:00
src Locales 2025-05-29 20:36:51 -07:00
.gitignore Update .gitignore 2025-06-01 16:19:01 -07:00
Cargo.toml Add locale code 2025-06-01 16:23:58 -07:00
LICENSE Initial commit 2025-05-27 22:27:22 -07:00
README.md Update README.md 2025-05-28 15:32:29 -07:00

dataurlify

Convert files to data: URLs

Demonstration Video

Examples

It's as easy as

dataurlify file.txt

The data url will be stored in file.txt.data.txt


To convert multiple files

dataurlify image1.png image2.jpg

The data urls will be stored in image1.png.data.txt and image2.jpg.data.txt


To bulk convert files

Note

You may need a proper shell (like bash) for bulk conversion to properly work

dataurlify *.png

The data urls will be stored in *.png.data.txt where *.png is all the png files the shell can find in the directory.


To bulk convert files (with subfolder scanning)

Not implemented at the moment, might implement the -r argument