1.2.0 • Published 10 years ago
duri v1.2.0
data-uri
Convert a given file into Data URI scheme.
Installation
$ make install
$ data-uri -f hello.pngor via npm (as duri):
$ npm install duri -g
$ duri -f hello.pngUsage
$ 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 | pbcopyTests
$ make test