Socket
Socket
Sign inDemoInstall

screencap

Package Overview
Dependencies
4
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.6 to 1.0.0

lib/screencap-core.js

4

examples/screencap.js
var screencap = require('../index.js');
var screen = screencap({
audioCodec: "aac",
videoCodec: "libx264",
videoBitrate: "1000k",
audioBitrate: "96k"
audioBitrate: "96k",
format: "mp4"
},'test.mp4');
screen.capture('30');

@@ -1,8 +0,1 @@

var isWin = /^win/.test(process.platform);
var isMac = /^darwin/.test(process.platform);
var isLin = /^linux/.test(process.platform);
var screencap = "";
if (isWin) screencap = require('./lib/screencap-windows.js');
if (isLin) screencap = require('./lib/screencap-linux.js');
if (isMac) screencap = require('./lib/screencap-mac.js');
module.exports = screencap;
module.exports = require('./lib/screencap-core.js');

@@ -37,3 +37,4 @@ 'use strict';

videoBitrate: "1000k",
audioBitrate: "96k"
audioBitrate: "96k",
format: "mp4"
},output);

@@ -40,0 +41,0 @@ screen.capture(seconds);

{
"name": "screencap",
"version": "0.0.6",
"version": "1.0.0",
"description": "A Screen Capture (Image & Video) Library",

@@ -24,3 +24,3 @@ "main": "index.js",

"dependencies": {
"fluent-ffmpeg": "*"
"fluent-ffmpeg": "^2.1.2"
},

@@ -27,0 +27,0 @@ "directories": {

@@ -69,3 +69,3 @@ #ScreenCap

##Incorporating
##API

@@ -88,3 +88,9 @@ You can use ScreenCap in your own software by including it as a dependency. The following example is a programatic way to take a screen shot using Screen Cap.

```javascript
var screencap = require('screencap');
var screen = screencap();
app.get('/', function(req, res) {
screen.shotPipe(res);
});
```

@@ -91,0 +97,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc