Convert files to data: URLs
Find a file
Tablet kitty fae245a24b
All checks were successful
Test executable / test (push) Successful in 34s
continuous-integration/drone/push Build is passing
detect if path is directory
2025-08-26 16:31:19 -07:00
.forgejo/workflows Add .forgejo/workflows/crates-publish.yml 2025-08-23 14:12:12 -07:00
src detect if path is directory 2025-08-26 16:31:19 -07:00
.drone.yml Update .drone.yml 2025-06-26 01:04:20 -07:00
.gitignore Update .gitignore 2025-06-01 16:19:01 -07:00
Cargo.toml detect if path is directory 2025-08-26 16:31:19 -07:00
LICENSE Initial commit 2025-05-27 22:27:22 -07:00
README.md Add required fields for crates.io, add draft -o option 2025-08-23 14:24:00 -07:00

dataurlify

Convert files to data: URLs

Build Status

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

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)

dataurlify folder -r

The data urls will be stored as [name].data.txt inside that directory unless -o is specified.