data-uri-stream

Transform stream that emits a data uri

npm install data-uri-stream
1 downloads in the last week
4 downloads in the last month

data-uri-stream

Create a transform stream that will emit a data uri.

Usage

var datauri = require("data-uri-stream"),
    concat = require("concat-stream"),
    fs = require("fs");

    fs.readFile("image.png")
        .pipe(datauri({ type: "image/png" }))
        .pipe(concat(function(data) {
            console.log(data) // datauri
        });
npm loves you