Converts a file into a data URL.
e.g.
dataurl test.png
To open in browser:
dataurl -b test.png
Works for any filetype that file
can identify the MIME type for!
curl -sL https://git.io/JeEt0 | bash
You will need to provide your password for sudo
. The script will be installed to /usr/local/bin/dataurl
.