dataurl

Parse and generate data URLs from files and text in the terminal.

cargomacoslinuxwindows
Try with needOr install directly
Source

About

CLI tool and Rust crate for parsing and generating data URLs

Commands

dataurl

Examples

convert image file to data URL$ dataurl image.png
encode text as data URL$ dataurl --text 'hello world'
decode data URL back to original content$ dataurl decode 'data:text/plain;base64,aGVsbG8='
create data URL from file with custom MIME type$ dataurl --mime 'application/json' data.json
convert SVG file to embeddable data URL$ dataurl icon.svg