Automatically generated Node.js Foreign Function Interface (FFI) package for libuvc v0.0.6. It is meant as a base to build feature-rich packages on top of — without the hassle of writing library bindings and building native dependencies.
libuvc: A cross-platform library for USB video devices
linux-x86_64
Conan package id 5059f61390311ebcb390fdf8ccdb55883b02a431.
-
libjpegv9d (branch/tag matching^v2.0.1) -
libusbv1.0.23 (branch/tag matching^v2.0.1)
macos-armv8
Conan package id 4a6b69ad4662b73171fc6aa328f5465e9e2baee5.
-
libjpegv9d (branch/tag matching^v2.0.1) -
libusbv1.0.23 (branch/tag matching^v2.0.1)
macos-x86_64
Conan package id fd3a12e9fb10dddd2d7131da2f6920cb125f879d.
-
libjpegv9d (branch/tag matching^v2.0.1) -
libusbv1.0.23 (branch/tag matching^v2.0.1)
npm install --save github:node-ffi-libraries/node-ffi-library-libuvc-v0.0.6#semver:^2.0.1const { load } = require("@ffi-libraries/libuvc-v0.0.6");
async function main() {
// Lazy-loading the library and all dependencies.
const library = await load();
// A library might have more than one header file.
console.dir(library);
// Lazy-load an individual header file (random example, see output from above).
const headerLoader = library.headers["./include/libuvc/libuvc.h"];
const header = await headerLoader();
// You can now use the functions and types exported by the header file.
console.dir(header);
// Properly unload when done.
await library.unload();
}
main();- Used from Node.js (Javascript) to call the
libuvcdynamic library (C/C++).- No compilation required. All available binaries are included in the package and are loaded automatically.
- Library header files are included, but most other documentation is not. See instead documentation for
libuvc.
- The
headervariable in the above example contains a Javascript object generated from the C/C++ header file.- C/C++ constants.
- FFI typedefs.
- Bindings to C/C++ functions.
- See the Node.js FFI tutorial to get started.
- Using N-API (
-napi) versions of FFI libraries is required. - See ffi-napi, ref-napi, and related
-napipackages.
- Using N-API (
- Repository/package automatically generated by
@ffi-packager/ffi-packager:- Version: v2.0.1
- Generator run by: Joel Purra
- Repository published to Github:
- Branch:
v2.0.1 - Repository:
node-ffi-library-libuvc-v0.0.6 - Organization:
node-ffi-libraries
- Branch:
- Package was not published to NPM.
- Version:
2.0.1(based on the package generator version) - Name:
@ffi-libraries/libuvc-v0.0.6 - Organization/scope:
ffi-libraries
- Version:
- Library binaries made available by Conan.io:
- Package reference:
libuvc/0.0.6@ - Conan remote:
conan-center
- Package reference:
- The library is
libuvc:- Version: v0.0.6
- Description: "A cross-platform library for USB video devices"
- License: BSD-3-Clause
- Topics: libuvc, libusb, usb, video
@ffi-libraries/libuvc-v0.0.6 Copyright © 2021 Joel Purra. License: MIT.