New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gphoto

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gphoto

A simple node.js exec wrapper for [gphoto2](http://www.gphoto.org/)

  • 1.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-84.62%
Maintainers
1
Weekly downloads
 
Created
Source

gphoto

A simple node.js exec wrapper for gphoto2

Install

Prerequisites

You should have libgphoto2 and gphoto2 installed.

Homebrew
brew install libgphoto2
brew install gphoto2
gphoto2 --auto-detect
APT
sudo apt install libgphoto2-6
sudo apt-get install gphoto2
gphoto2 --auto-detect

Note: You may need admin rights to access/control cameras on your machine.

Add gphoto to project

npm install gphoto

or

yarn add gphoto

Queue

This library utilises a queue manager that waits until other operations have finished before beginning a new one. This is intended to prevent i/o conflicts with gphoto2 attempting several operations on the same camera at the same time.

Queues are identifier specific, so it's possible to use multiple cameras (using different GPhotoIdentifier values) without them colliding.

The queue manager also adds a short 100 millisecond pause after each operation has finished. This can be changed by calling gPhoto.queue.setPauseTime(x) with the desired pause time. Set to -1 for no pause.

The queue functionality can be disabled by calling gPhoto.queue.disable(). This disables all queuing, and pauses.

API for queue can be found in the documentation.

Examples

A selection of short examples can be found in examples/examples.ts

They can be run using the yarn example [NAME] command.

Run yarn example help to see a list of available examples that can be run.

API

Full TypeDoc API documents can be found here

FAQs

Package last updated on 08 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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