npm

Join us for the "JavaScript Supply Chain Security" tech talk, presented by VP of Security, Adam Baldwin. 6/20 at 10am PT.Sign up here »

data-uri-stream

1.0.0 • Public • Published

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
        });

install

npm i data-uri-stream

Downloadsweekly downloads

1

version

1.0.0

license

Public Domain

last publish

collaborators

  • avatar
Report a vulnerability