https://github.com/soixantecircuits/node-gphoto-fii
A lib to control gphoto2 API using node through native C++ binding
https://github.com/soixantecircuits/node-gphoto-fii
Last synced: 3 months ago
JSON representation
A lib to control gphoto2 API using node through native C++ binding
- Host: GitHub
- URL: https://github.com/soixantecircuits/node-gphoto-fii
- Owner: soixantecircuits
- License: mit
- Created: 2017-02-03T15:34:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-03T16:26:45.000Z (over 8 years ago)
- Last Synced: 2025-01-29T13:44:49.345Z (5 months ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 1
- Watchers: 7
- Forks: 2
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
gphoto2_ffi
=============This is a Node.js module, generated with the node-ffi library, that wraps
around the functions of the C library libgphoto2. Inspired by node-gphoto2.Installation
------------No npm package so far; you can install this module by cloning it into your
project:git clone https://github.com/soixantecircuits/node-gphoto-fii.git
mv node-gphoto-fii ./node_modules
Example
-------const gp2 = require("gphoto2_ffi");
var context = gp2.gp_context_new();
var camera = gp2.NewInitCamera(context);var config = gp2.GetConfig(camera, context, name);
var tree = gp2.getWidgetTree(config);
console.log(name + ":");
console.log(util.inspect(tree[name], {showHidden: false, depth: null}));gp2.gp_widget_unref(config);
gp2.gp_camera_exit(camera, context);
gp2.gp_camera_unref(camera);
gp2.gp_context_unref(context);License
-------MIT License. See `LICENSE` file.