Skip to content

maboiteaspam/node-screencapture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-screencapture

A command line binary to take a screenshot of the desktop.

It is using vlc to realize screenshot.

Requirements

Get vlc installed. This module won t check or install it for you.

Install

npm i node-screencapture -g

Usage

  Usage: node-screencapture [options]
  
  node-screencapture --output some.png

  Options:

    -h, --help               output usage information
    -V, --version            output the version number
    --format <format>        File format jpg, png
    -o, --output <filePath>  Output file path
    --vlc <vlcPath>          VLC binary path

API

var VlcScreenshot = require('node-screencapture');

var shooter = new VlcScreenshot();

shooter.format = program.format || 'png';
shooter.vlcPath = program.vlc || 'cvlc';

shooter.shoot('some.png', function(){
  console.error('All done  !');
});

About

Take a screenshot of your desktop using node and vlc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published