mjpeg-consumer
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "mjpeg-consumer", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "a stream implementation that consumes http mjpeg streams and emits jpegs as buffers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
mjpeg-consumer | ||
================== | ||
A node.js stream implementation that consumes http mjpeg streams and emits jpegs. | ||
A node.js transform stream implementation that consumes http multipart mjpeg streams and emits jpegs. | ||
@@ -12,15 +12,7 @@ [![build status](https://secure.travis-ci.org/mmaelzer/mjpeg-consumer.png)](http://travis-ci.org/mmaelzer/mjpeg-consumer) | ||
npm install mjpeg-consumer | ||
```bash | ||
npm install mjpeg-consumer | ||
``` | ||
---------------------- | ||
### Objects | ||
Requiring the `mjpeg-consumer` module returns a readable/writable stream implementation that takes an http mjpeg stream and emits jpegs. | ||
```javascript | ||
var MjpegConsumer = require("mjpeg-consumer"); | ||
var consumer = new MjpegConsumer(); | ||
``` | ||
---------------------- | ||
### Usage | ||
@@ -40,3 +32,3 @@ The `mjpeg-consumer` isn't very useful without a writable pipe to pipe jpegs to. I've built the [file-on-write](https://github.com/mmaelzer/file-on-write) stream to write a file every time `write` is called on it. The below example opens a stream to an IP camera, pipes the results to the `mjpeg-consumer` which processes the stream and emits parsed jpegs to the `file-on-write` writer. | ||
request("http://192.168.1.2/videostream.cgi").pipe(consumer).pipe(writer); | ||
request("http://mjpeg.sanford.io/count.mjpeg").pipe(consumer).pipe(writer); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
10661
33