marcusandre / data-uri

easily create a data-uri from a given file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

data-uri

NPM version build status

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

License

MIT

About

easily create a data-uri from a given file

License:MIT License


Languages

Language:Shell 89.5%Language:Makefile 10.5%