duri
v1.2.0
Published
convert files into data-uri scheme
Downloads
12
Readme
data-uri
Convert a given file into Data URI scheme.
Installation
$ make install
$ data-uri -f hello.png
or via npm
(as duri
):
$ npm install duri -g
$ duri -f hello.png
Usage
$ datauri -f /path/to/image.png > image.datauri
$ echo "<img src=\"$(datauri -f /path/to/image.png)\">" > image_tag.html
$ datauri -f /path/to/image.png | pbcopy
Tests
$ make test