Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mjpeg-consumer

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjpeg-consumer - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"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);
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc