duri

1.2.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i duri

Weekly Downloads

0

Version

1.2.0

License

MIT

Last publish

Collaborators

  • marcusandre