data-uri-stream
Transform stream that emits a data uri
Last updated 7 years ago by parshap .
Public Domain · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install data-uri-stream 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (7 years ago)

1 Versions

  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |