imagesnapjs

0.0.7 • Public • Published

imagesnapjs

Build Status NPM Version License

An npm/nodejs wrapper for imagesnap

imagesnap is an OSX tool for capturing webcam photos from the command line, written by Robert Harder. (Thanks!)

imagesnapjs is first a wrapper, for making imagesnap installation as easy as npm i -g imagesnapjs, and second, an npm dependency for capturing webcam shots from nodejs applications.

As a command line tool

Installation
$ npm install -g imagesnapjs
Usage

see the original documentation or just type imagesnap -h.

As an npm module

Installation
$ npm install --save imagesnapjs
Usage
var imagesnapjs = require('imagesnapjs');

imagesnapjs.capture('/Users/dany/image.jpg', { cliflags: '-w 2'}, function(err) {
  console.log(err ? err : 'Success!');
});

The second options parameter is optional, and can include a cliflags value of additional command line flags to be passed to the imagesnap command execution.

Notes

  • this is OSX specific! execution of the binary will fail on other systems.
  • Using imageSnap v0.2.5

Feedback

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.7
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.7
    1
  • 0.0.6
    0
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i imagesnapjs

Weekly Downloads

1

Version

0.0.7

License

MIT

Last publish

Collaborators

  • danyshaanan