nokhwa-node 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,266 +1,170 @@
1
1
  # nokhwa-node
2
2
 
3
3
  ![CI](https://github.com/nglmercer/nokhwa-node/workflows/CI/badge.svg)
4
+ [![npm version](https://img.shields.io/npm/v/nokhwa-node.svg)](https://www.npmjs.com/package/nokhwa-node)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
6
 
5
- Node.js bindings for [nokhwa](https://github.com/l1npengtul/nokhwa) camera library using [napi-rs](https://napi.rs/). This package provides native performance for camera access across multiple platforms including WebAssembly via WASI.
7
+ **nokhwa-node** provides high-performance Node.js bindings for the [nokhwa](https://github.com/l1npengtul/nokhwa) Rust camera library. It allows you to access webcams and video capture devices across multiple platforms with a simple, thread-safe API.
6
8
 
7
- ## Features
9
+ ## 🚀 Features
8
10
 
9
- - **Cross-platform support**: macOS, Linux (glibc & musl), Windows, FreeBSD, and WebAssembly (WASI)
10
- - **High performance**: Native Rust implementation with N-API for optimal speed
11
- - **WebAssembly support**: Run camera operations in browser and edge environments via WASI
12
- - **Thread-safe**: Multi-threaded camera access support
13
- - **Easy to use**: Simple JavaScript/TypeScript API
11
+ - **Blazing Fast**: Native Rust implementation using [napi-rs](https://napi.rs/).
12
+ - **Cross-platform**: Support for Windows, macOS, Linux, FreeBSD, and WebAssembly (WASI).
13
+ - **Auto-Discovery**: Easily list and query available camera devices.
14
+ - **Robust Format Selection**: Automatic fallback strategies to find the best working format for your device.
15
+ - **Control Hardware**: Set brightness, contrast, zoom, exposure, and more.
16
+ - **Buffer Conversions**: Built-in utilities to convert between MJPEG, YUYV, NV12, and RGB/RGBA.
14
17
 
15
- ## Supported Platforms
16
-
17
- | Platform | Architecture | Status |
18
- |----------|-------------|--------|
19
- | macOS | x86_64, ARM64 (Apple Silicon) | ✅ |
20
- | Windows | x86_64, i686, ARM64 | ✅ |
21
- | Linux | x86_64, aarch64 (glibc & musl) | ✅ |
22
- | FreeBSD | x86_64 | ✅ |
23
- | WebAssembly | wasm32-wasip1-threads | ✅ |
24
-
25
- ## Installation
18
+ ## 📦 Installation
26
19
 
27
20
  ```bash
28
21
  npm install nokhwa-node
29
22
  ```
30
23
 
31
- ## Usage
24
+ ## 🛠️ Usage
25
+
26
+ ### Basic Capture
32
27
 
33
28
  ```typescript
34
- import { Camera, CameraFormat } from 'nokhwa-node';
29
+ import { listCameras, Camera } from 'nokhwa-node'
35
30
 
36
- // List available cameras
37
- const cameras = await Camera.list_cameras();
38
- console.log('Available cameras:', cameras);
31
+ // 1. List available cameras
32
+ const cameras = listCameras()
33
+ console.log('Detected cameras:', cameras)
39
34
 
40
- // Open a camera
41
- const camera = new Camera(0, {
42
- width: 640,
43
- height: 480,
44
- format: 'mjpeg',
45
- });
35
+ if (cameras.length > 0) {
36
+ // 2. Open the first camera (index is a string, e.g., "0")
37
+ // The stream is opened automatically on initialization.
38
+ const camera = new Camera(cameras[0].index)
46
39
 
47
- // Start the camera stream
48
- await camera.open_stream();
40
+ console.log(`Using camera: ${camera.info().name}`)
49
41
 
50
- // Capture a frame
51
- const frame = await camera.frame();
52
- console.log('Frame size:', frame.len);
42
+ // 3. Capture a frame
43
+ // Returns a Frame object: { data: Buffer (RGBA), width: number, height: number }
44
+ const frame = camera.captureFrame()
45
+ console.log(`Captured ${frame.width}x${frame.height} frame`)
53
46
 
54
- // Close the camera
55
- camera.stop();
47
+ // 4. Stop the stream when done
48
+ camera.stopStream()
49
+ }
56
50
  ```
57
51
 
58
- ## Building Locally
59
-
60
- ### Prerequisites
52
+ ### Camera Controls
61
53
 
62
- - **Rust**: Latest stable version
63
- - **Node.js**: >= 10 (NAPI support)
64
- - **Yarn**: 1.x or higher
54
+ ```typescript
55
+ import { Camera, KnownCameraControl } from 'nokhwa-node'
65
56
 
66
- ### Standard Build
57
+ const camera = new Camera('0')
67
58
 
68
- ```bash
69
- # Install dependencies
70
- yarn install
59
+ // Get supported controls for this device
60
+ const controls = camera.supportedCameraControls()
61
+ console.log('Supported controls:', controls)
71
62
 
72
- # Build for current platform
73
- yarn build
74
-
75
- # Run tests
76
- yarn test
63
+ // Set brightness (value type depends on the control)
64
+ camera.setCameraControl(KnownCameraControl.Brightness, {
65
+ type: 'Float',
66
+ field0: 0.5,
67
+ })
77
68
  ```
78
69
 
79
- ### Building for WebAssembly (WASI)
80
-
81
- To build for the `wasm32-wasip1-threads` target locally, you need to install the WASI SDK and configure your build environment:
82
-
83
- ```bash
84
- # Download and extract WASI SDK
85
- wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-22/wasi-sdk-22.0-linux.tar.gz
86
- tar xvf wasi-sdk-22.0-linux.tar.gz
87
-
88
- # Set environment variables
89
- export WASI_SDK_PATH="$(pwd)/wasi-sdk-22.0"
90
- export CC="${WASI_SDK_PATH}/bin/clang"
91
- export AR="${WASI_SDK_PATH}/bin/llvm-ar"
92
- export CFLAGS="--sysroot=${WASI_SDK_PATH}/share/wasi-sysroot"
93
-
94
- # Build for WASI target
95
- yarn build --platform --target wasm32-wasip1-threads
96
- ```
70
+ ### Manual Stream Management
97
71
 
98
- ### Building for Specific Platforms
72
+ ```typescript
73
+ const camera = new Camera('0')
99
74
 
100
- ```bash
101
- # Build for all supported platforms
102
- yarn build --platform
75
+ // Check if stream is active
76
+ if (camera.isStreamOpen()) {
77
+ camera.stopStream()
78
+ }
103
79
 
104
- # Build for a specific target
105
- yarn build --platform --target x86_64-unknown-linux-gnu
80
+ // Re-open later
81
+ camera.openStream()
106
82
  ```
107
83
 
108
- ## CI/CD Pipeline
109
-
110
- This project uses GitHub Actions for continuous integration and automated releases. The CI pipeline builds and tests across all supported platforms:
111
-
112
- ### Build Matrix
113
-
114
- - **Node.js versions**: 20, 22
115
- - **Platforms**:
116
- - macOS (x86_64, ARM64)
117
- - Windows (x86_64, i686, ARM64)
118
- - Linux (x86_64, aarch64 with glibc & musl)
119
- - FreeBSD (x86_64)
120
- - WebAssembly (wasm32-wasip1-threads)
121
-
122
- ### WASI Build Configuration
84
+ ## 🌍 Supported Platforms
123
85
 
124
- The WebAssembly build requires special handling to ensure all necessary libc headers are available. The CI workflow automatically:
86
+ | OS | Architectures |
87
+ | --------------- | -------------------------- |
88
+ | **Windows** | x64, x86, ARM64 |
89
+ | **macOS** | x64, ARM64 (Apple Silicon) |
90
+ | **Linux** | x64, ARM64 (glibc & musl) |
91
+ | **FreeBSD** | x86_64 |
92
+ | **WebAssembly** | wasm32-wasip1-threads |
125
93
 
126
- 1. **Installs WASI SDK** - Downloads wasi-sdk-22.0 for the wasm target
127
- 2. **Configures environment variables**:
128
- - `CC`: Points to WASI SDK's clang compiler
129
- - `AR`: Points to WASI SDK's llvm-ar
130
- - `CFLAGS`: Sets `--sysroot` to the WASI sysroot
131
- 3. **Builds with proper toolchain** - Ensures clang can find libc headers like `bits/libc-header-start.h`
94
+ ## 📖 API Reference
132
95
 
133
- ### Testing
96
+ ### Global Functions
134
97
 
135
- All builds are automatically tested using [AVA](https://avajs.dev/) across different Node.js versions to ensure compatibility and correctness.
98
+ - `listCameras()`: Returns `Array<CameraDevice>` - Lists all detected cameras.
99
+ - `query(backend: ApiBackend)`: Returns `Array<CameraDevice>` - Query cameras for a specific backend.
100
+ - `nokhwaCheck()`: Returns `boolean` - Checks if nokhwa is initialized and functional.
101
+ - `nativeApiBackend()`: Returns `ApiBackend | null` - Gets the default native backend for the current platform.
136
102
 
137
- ## Development
103
+ ### Camera Class
138
104
 
139
- ### Running Benchmarks
105
+ - `constructor(cameraIndex: string)`: Creates and automatically opens a camera.
106
+ - `captureFrame()`: Returns `Frame` - Captures an RGBA frame.
107
+ - `info()`: Returns `CameraDevice` - Name and index of the camera.
108
+ - `backend()`: Returns `ApiBackend` - The backend being used (e.g., "MediaFoundation", "AVFoundation").
109
+ - `cameraFormat()`: Returns `CameraFormat` - Current resolution, frame rate, and pixel format.
110
+ - `refreshCameraFormat()`: Returns `CameraFormat` - Refreshes and returns the active camera format.
111
+ - `setCameraRequest(request: RequestedFormatConfig)`: Request a format change (e.g., "AbsoluteHighestFrameRate").
112
+ - `compatibleCameraFormats()`: Returns `Array<CameraFormat>` - List all formats supported by the device.
113
+ - `supportedCameraControls()`: Returns `Array<KnownCameraControl>`.
114
+ - `setCameraControl(control, value)`: Sets a hardware control value.
115
+ - `openStream()`: Opens the camera stream.
116
+ - `stopStream()`: Stops the camera stream.
117
+ - `frameRaw()`: Returns `CameraBuffer` - Gets raw frame data without RGBA conversion.
140
118
 
141
- ```bash
142
- # Build and run benchmarks
143
- yarn bench
119
+ ### Core Types
144
120
 
145
- # Build in debug mode and run benchmarks
146
- yarn bench:debug
121
+ ```typescript
122
+ interface CameraDevice {
123
+ index: string
124
+ name: string
125
+ }
126
+
127
+ interface Frame {
128
+ data: Buffer // RGBA data
129
+ width: number
130
+ height: number
131
+ }
132
+
133
+ interface CameraFormat {
134
+ resolution: { width: number; height: number }
135
+ frameRate: number
136
+ format: FrameFormat
137
+ }
147
138
  ```
148
139
 
149
- ### Code Formatting
150
-
151
- ```bash
152
- # Format all code (JavaScript, TypeScript, Rust, TOML)
153
- yarn format
154
-
155
- # Format individual parts
156
- yarn format:prettier # JS/TS/YAML/MD/JSON
157
- yarn format:rs # Rust
158
- yarn format:toml # TOML
159
- ```
140
+ ## 🛠️ Development
160
141
 
161
- ### Linting
142
+ ### Building from source
162
143
 
163
144
  ```bash
164
- # Run linter
165
- yarn lint
166
- ```
167
-
168
- ## Release Process
169
-
170
- The release process is automated via GitHub Actions:
171
-
172
- 1. Update version using semantic versioning:
173
- ```bash
174
- npm version [major | minor | patch]
175
- ```
176
- 2. Push to trigger the release workflow:
177
- ```bash
178
- git push
179
- ```
180
-
181
- The CI pipeline will:
182
- - Build binaries for all supported platforms
183
- - Run tests across all platforms and Node.js versions
184
- - Publish platform-specific packages to npm
185
- - Publish the main package with optional dependencies
186
-
187
- ### Platform-Specific Packages
188
-
189
- For optimal user experience, this package publishes separate npm packages for each platform:
190
-
191
- - `@nokhwa/node-darwin-x64`
192
- - `@nokhwa/node-darwin-arm64`
193
- - `@nokhwa/node-win32-x64`
194
- - `@nokhwa/node-win32-ia32`
195
- - `@nokhwa/node-win32-arm64`
196
- - `@nokhwa/node-linux-x64-gnu`
197
- - `@nokhwa/node-linux-x64-musl`
198
- - `@nokhwa/node-linux-arm64-gnu`
199
- - `@nokhwa/node-linux-arm64-musl`
200
- - `@nokhwa/node-freebsd-x64`
201
- - `@nokhwa/node-wasm32-wasi`
202
-
203
- NPM automatically selects the correct package for the user's platform, eliminating the need for users to install build toolchains or download binaries manually.
204
-
205
- ### Setup for Release
206
-
207
- Ensure you've added your `NPM_TOKEN` in GitHub repository settings:
208
-
209
- 1. Go to **Settings → Secrets and variables → Actions**
210
- 2. Add a new secret named `NPM_TOKEN` with your npm authentication token
211
-
212
- ⚠️ **Important**: Do not run `npm publish` manually. Use the automated release workflow instead.
145
+ # Install dependencies
146
+ npm install
213
147
 
214
- ## Troubleshooting
148
+ # Build the native module
149
+ npm run build
215
150
 
216
- ### WASI Build Failures
151
+ # Run tests
152
+ npm test
153
+ ```
217
154
 
218
- If you encounter errors like `bits/libc-header-start.h: No such file or directory` when building for WebAssembly:
155
+ ### Benchmarks
219
156
 
220
- 1. Ensure WASI SDK is properly installed
221
- 2. Verify the `WASI_SYSROOT` environment variable is set correctly
222
- 3. Check that `CC` and `AR` point to the WASI SDK tools
223
- 4. Make sure `CFLAGS` includes the `--sysroot` flag
157
+ Execute performance benchmarks to see how fast frame capture and conversion are:
224
158
 
225
- Example:
226
159
  ```bash
227
- export WASI_SYSROOT="/path/to/wasi-sdk-22.0/share/wasi-sysroot"
228
- export CC="/path/to/wasi-sdk-22.0/bin/clang"
229
- export AR="/path/to/wasi-sdk-22.0/bin/llvm-ar"
230
- export CFLAGS="--sysroot=$WASI_SYSROOT"
160
+ npm run bench
231
161
  ```
232
162
 
233
- ### Platform-Specific Issues
234
-
235
- For platform-specific build issues, ensure you have the required toolchain:
236
-
237
- - **macOS**: Xcode Command Line Tools
238
- - **Linux**: `gcc`, `glibc-devel` (or `musl-dev` for musl builds)
239
- - **Windows**: Visual Studio Build Tools or MSVC
240
- - **FreeBSD**: Build environment with proper development tools
163
+ ## 📄 License
241
164
 
242
- ## Contributing
243
-
244
- Contributions are welcome! Please feel free to submit a Pull Request.
245
-
246
- 1. Fork the repository
247
- 2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
248
- 3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
249
- 4. Push to the branch (`git push origin feature/AmazingFeature`)
250
- 5. Open a Pull Request
251
-
252
- ## License
253
-
254
- This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
165
+ MIT © [nglmercer](https://github.com/nglmercer)
255
166
 
256
167
  ## Acknowledgments
257
168
 
258
- - [nokhwa](https://github.com/l1npengtul/nokhwa) - The underlying Rust camera library
259
- - [napi-rs](https://napi.rs/) - Framework for building Node.js native modules in Rust
260
- - [WASI SDK](https://github.com/WebAssembly/wasi-sdk) - WebAssembly System Interface toolchain
261
-
262
- ## Links
263
-
264
- - [GitHub Repository](https://github.com/nglmercer/nokhwa-node)
265
- - [NPM Package](https://www.npmjs.com/package/nokhwa-node)
266
- - [Documentation](https://github.com/nglmercer/nokhwa-node#readme)
169
+ - [nokhwa](https://github.com/l1npengtul/nokhwa) - The underlying Rust camera library.
170
+ - [napi-rs](https://napi.rs/) - Framework for building Node.js native modules in Rust.
package/index.d.ts CHANGED
@@ -18,7 +18,11 @@ export declare class Camera {
18
18
  backend(): ApiBackend
19
19
  /** Get camera information */
20
20
  info(): CameraDevice
21
- /** Get the current camera format */
21
+ /**
22
+ * Get the current camera format
23
+ * Note: This returns the requested frame rate. Use refresh_camera_format()
24
+ * to get the actual active frame rate from the camera.
25
+ */
22
26
  cameraFormat(): CameraFormat
23
27
  /** Refresh and get the camera format */
24
28
  refreshCameraFormat(): CameraFormat
package/index.js CHANGED
@@ -77,8 +77,8 @@ function requireNative() {
77
77
  try {
78
78
  const binding = require('nokhwa-node-android-arm64')
79
79
  const bindingPackageVersion = require('nokhwa-node-android-arm64/package.json').version
80
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
81
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
80
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
81
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
82
82
  }
83
83
  return binding
84
84
  } catch (e) {
@@ -93,8 +93,8 @@ function requireNative() {
93
93
  try {
94
94
  const binding = require('nokhwa-node-android-arm-eabi')
95
95
  const bindingPackageVersion = require('nokhwa-node-android-arm-eabi/package.json').version
96
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
96
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
98
98
  }
99
99
  return binding
100
100
  } catch (e) {
@@ -114,8 +114,8 @@ function requireNative() {
114
114
  try {
115
115
  const binding = require('nokhwa-node-win32-x64-gnu')
116
116
  const bindingPackageVersion = require('nokhwa-node-win32-x64-gnu/package.json').version
117
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
118
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
117
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
118
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
119
119
  }
120
120
  return binding
121
121
  } catch (e) {
@@ -130,8 +130,8 @@ function requireNative() {
130
130
  try {
131
131
  const binding = require('nokhwa-node-win32-x64-msvc')
132
132
  const bindingPackageVersion = require('nokhwa-node-win32-x64-msvc/package.json').version
133
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
133
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
135
135
  }
136
136
  return binding
137
137
  } catch (e) {
@@ -147,8 +147,8 @@ function requireNative() {
147
147
  try {
148
148
  const binding = require('nokhwa-node-win32-ia32-msvc')
149
149
  const bindingPackageVersion = require('nokhwa-node-win32-ia32-msvc/package.json').version
150
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
150
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
152
152
  }
153
153
  return binding
154
154
  } catch (e) {
@@ -163,8 +163,8 @@ function requireNative() {
163
163
  try {
164
164
  const binding = require('nokhwa-node-win32-arm64-msvc')
165
165
  const bindingPackageVersion = require('nokhwa-node-win32-arm64-msvc/package.json').version
166
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
166
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
168
168
  }
169
169
  return binding
170
170
  } catch (e) {
@@ -182,8 +182,8 @@ function requireNative() {
182
182
  try {
183
183
  const binding = require('nokhwa-node-darwin-universal')
184
184
  const bindingPackageVersion = require('nokhwa-node-darwin-universal/package.json').version
185
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
186
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
185
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
186
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
187
187
  }
188
188
  return binding
189
189
  } catch (e) {
@@ -198,8 +198,8 @@ function requireNative() {
198
198
  try {
199
199
  const binding = require('nokhwa-node-darwin-x64')
200
200
  const bindingPackageVersion = require('nokhwa-node-darwin-x64/package.json').version
201
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
201
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
203
203
  }
204
204
  return binding
205
205
  } catch (e) {
@@ -214,8 +214,8 @@ function requireNative() {
214
214
  try {
215
215
  const binding = require('nokhwa-node-darwin-arm64')
216
216
  const bindingPackageVersion = require('nokhwa-node-darwin-arm64/package.json').version
217
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
217
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
219
219
  }
220
220
  return binding
221
221
  } catch (e) {
@@ -234,8 +234,8 @@ function requireNative() {
234
234
  try {
235
235
  const binding = require('nokhwa-node-freebsd-x64')
236
236
  const bindingPackageVersion = require('nokhwa-node-freebsd-x64/package.json').version
237
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
238
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
237
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
238
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
239
239
  }
240
240
  return binding
241
241
  } catch (e) {
@@ -250,8 +250,8 @@ function requireNative() {
250
250
  try {
251
251
  const binding = require('nokhwa-node-freebsd-arm64')
252
252
  const bindingPackageVersion = require('nokhwa-node-freebsd-arm64/package.json').version
253
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
253
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
255
255
  }
256
256
  return binding
257
257
  } catch (e) {
@@ -271,8 +271,8 @@ function requireNative() {
271
271
  try {
272
272
  const binding = require('nokhwa-node-linux-x64-musl')
273
273
  const bindingPackageVersion = require('nokhwa-node-linux-x64-musl/package.json').version
274
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
275
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
274
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
275
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
276
276
  }
277
277
  return binding
278
278
  } catch (e) {
@@ -287,8 +287,8 @@ function requireNative() {
287
287
  try {
288
288
  const binding = require('nokhwa-node-linux-x64-gnu')
289
289
  const bindingPackageVersion = require('nokhwa-node-linux-x64-gnu/package.json').version
290
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
291
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
290
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
291
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
292
292
  }
293
293
  return binding
294
294
  } catch (e) {
@@ -305,8 +305,8 @@ function requireNative() {
305
305
  try {
306
306
  const binding = require('nokhwa-node-linux-arm64-musl')
307
307
  const bindingPackageVersion = require('nokhwa-node-linux-arm64-musl/package.json').version
308
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
309
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
308
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
309
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
310
310
  }
311
311
  return binding
312
312
  } catch (e) {
@@ -321,8 +321,8 @@ function requireNative() {
321
321
  try {
322
322
  const binding = require('nokhwa-node-linux-arm64-gnu')
323
323
  const bindingPackageVersion = require('nokhwa-node-linux-arm64-gnu/package.json').version
324
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
325
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
324
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
325
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
326
326
  }
327
327
  return binding
328
328
  } catch (e) {
@@ -339,8 +339,8 @@ function requireNative() {
339
339
  try {
340
340
  const binding = require('nokhwa-node-linux-arm-musleabihf')
341
341
  const bindingPackageVersion = require('nokhwa-node-linux-arm-musleabihf/package.json').version
342
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
343
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
342
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
343
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
344
344
  }
345
345
  return binding
346
346
  } catch (e) {
@@ -355,8 +355,8 @@ function requireNative() {
355
355
  try {
356
356
  const binding = require('nokhwa-node-linux-arm-gnueabihf')
357
357
  const bindingPackageVersion = require('nokhwa-node-linux-arm-gnueabihf/package.json').version
358
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
359
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
358
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
359
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
360
360
  }
361
361
  return binding
362
362
  } catch (e) {
@@ -373,8 +373,8 @@ function requireNative() {
373
373
  try {
374
374
  const binding = require('nokhwa-node-linux-loong64-musl')
375
375
  const bindingPackageVersion = require('nokhwa-node-linux-loong64-musl/package.json').version
376
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
377
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
376
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
377
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
378
378
  }
379
379
  return binding
380
380
  } catch (e) {
@@ -389,8 +389,8 @@ function requireNative() {
389
389
  try {
390
390
  const binding = require('nokhwa-node-linux-loong64-gnu')
391
391
  const bindingPackageVersion = require('nokhwa-node-linux-loong64-gnu/package.json').version
392
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
393
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
392
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
393
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
394
394
  }
395
395
  return binding
396
396
  } catch (e) {
@@ -407,8 +407,8 @@ function requireNative() {
407
407
  try {
408
408
  const binding = require('nokhwa-node-linux-riscv64-musl')
409
409
  const bindingPackageVersion = require('nokhwa-node-linux-riscv64-musl/package.json').version
410
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
411
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
410
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
411
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
412
412
  }
413
413
  return binding
414
414
  } catch (e) {
@@ -423,8 +423,8 @@ function requireNative() {
423
423
  try {
424
424
  const binding = require('nokhwa-node-linux-riscv64-gnu')
425
425
  const bindingPackageVersion = require('nokhwa-node-linux-riscv64-gnu/package.json').version
426
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
427
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
426
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
427
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
428
428
  }
429
429
  return binding
430
430
  } catch (e) {
@@ -440,8 +440,8 @@ function requireNative() {
440
440
  try {
441
441
  const binding = require('nokhwa-node-linux-ppc64-gnu')
442
442
  const bindingPackageVersion = require('nokhwa-node-linux-ppc64-gnu/package.json').version
443
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
443
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
445
445
  }
446
446
  return binding
447
447
  } catch (e) {
@@ -456,8 +456,8 @@ function requireNative() {
456
456
  try {
457
457
  const binding = require('nokhwa-node-linux-s390x-gnu')
458
458
  const bindingPackageVersion = require('nokhwa-node-linux-s390x-gnu/package.json').version
459
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
459
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
461
461
  }
462
462
  return binding
463
463
  } catch (e) {
@@ -476,8 +476,8 @@ function requireNative() {
476
476
  try {
477
477
  const binding = require('nokhwa-node-openharmony-arm64')
478
478
  const bindingPackageVersion = require('nokhwa-node-openharmony-arm64/package.json').version
479
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
479
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
481
481
  }
482
482
  return binding
483
483
  } catch (e) {
@@ -492,8 +492,8 @@ function requireNative() {
492
492
  try {
493
493
  const binding = require('nokhwa-node-openharmony-x64')
494
494
  const bindingPackageVersion = require('nokhwa-node-openharmony-x64/package.json').version
495
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
495
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
497
497
  }
498
498
  return binding
499
499
  } catch (e) {
@@ -508,8 +508,8 @@ function requireNative() {
508
508
  try {
509
509
  const binding = require('nokhwa-node-openharmony-arm')
510
510
  const bindingPackageVersion = require('nokhwa-node-openharmony-arm/package.json').version
511
- if (bindingPackageVersion !== '0.1.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
- throw new Error(`Native binding package version mismatch, expected 0.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
511
+ if (bindingPackageVersion !== '0.1.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
+ throw new Error(`Native binding package version mismatch, expected 0.1.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
513
513
  }
514
514
  return binding
515
515
  } catch (e) {
@@ -536,13 +536,17 @@ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
536
536
  wasiBindingError = err
537
537
  }
538
538
  }
539
- if (!nativeBinding) {
539
+ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
540
540
  try {
541
541
  wasiBinding = require('nokhwa-node-wasm32-wasi')
542
542
  nativeBinding = wasiBinding
543
543
  } catch (err) {
544
544
  if (process.env.NAPI_RS_FORCE_WASI) {
545
- wasiBindingError.cause = err
545
+ if (!wasiBindingError) {
546
+ wasiBindingError = err
547
+ } else {
548
+ wasiBindingError.cause = err
549
+ }
546
550
  loadErrors.push(err)
547
551
  }
548
552
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nokhwa-node",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Node.js bindings for nokhwa camera library using napi-rs",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -53,21 +53,20 @@
53
53
  },
54
54
  "scripts": {
55
55
  "artifacts": "napi artifacts",
56
- "bench": "tsx benchmark/bench.ts",
56
+ "bench": "npx tsx benchmark/bench.ts",
57
57
  "build": "napi build --platform --release",
58
58
  "build:debug": "napi build --platform",
59
- "format": "run-p format:prettier format:rs format:toml",
60
- "format:prettier": "prettier . -w",
61
- "format:toml": "taplo format",
59
+ "format": "npx run-p format:prettier format:rs format:toml",
60
+ "format:prettier": "npx prettier . -w",
61
+ "format:toml": "npx taplo format",
62
62
  "format:rs": "cargo fmt",
63
- "lint": "oxlint .",
63
+ "lint": "npx oxlint .",
64
64
  "prepublishOnly": "napi prepublish -t npm",
65
- "test": "node test-runner.mjs",
66
- "test:ava": "ava",
65
+ "test": "tsx --test __test__/index.test.ts",
67
66
  "preversion": "napi build --platform && git add .",
68
67
  "version": "napi version",
69
68
  "prepare": "husky",
70
- "bench:debug": "napi build --platform && tsx benchmark/bench.ts"
69
+ "bench:debug": "napi build --platform && npx tsx benchmark/bench.ts"
71
70
  },
72
71
  "devDependencies": {
73
72
  "@emnapi/core": "^1.5.0",
@@ -77,7 +76,6 @@
77
76
  "@taplo/cli": "^0.7.0",
78
77
  "@tybys/wasm-util": "^0.10.0",
79
78
  "@types/node": "^22.10.5",
80
- "ava": "^6.4.1",
81
79
  "chalk": "^5.6.2",
82
80
  "husky": "^9.1.7",
83
81
  "lint-staged": "^16.1.6",
@@ -99,14 +97,6 @@
99
97
  "taplo format"
100
98
  ]
101
99
  },
102
- "ava": {
103
- "extensions": {
104
- "ts": "module",
105
- "js": true
106
- },
107
- "timeout": "2m",
108
- "workerThreads": false
109
- },
110
100
  "prettier": {
111
101
  "printWidth": 120,
112
102
  "semi": false,
@@ -114,18 +104,18 @@
114
104
  "singleQuote": true,
115
105
  "arrowParens": "always"
116
106
  },
117
- "packageManager": "yarn@4.12.0",
107
+ "packageManager": "npm@10.2.4",
118
108
  "optionalDependencies": {
119
- "nokhwa-node-win32-x64-msvc": "0.1.4",
120
- "nokhwa-node-darwin-x64": "0.1.4",
121
- "nokhwa-node-linux-x64-gnu": "0.1.4",
122
- "nokhwa-node-linux-x64-musl": "0.1.4",
123
- "nokhwa-node-linux-arm64-gnu": "0.1.4",
124
- "nokhwa-node-win32-ia32-msvc": "0.1.4",
125
- "nokhwa-node-darwin-arm64": "0.1.4",
126
- "nokhwa-node-freebsd-x64": "0.1.4",
127
- "nokhwa-node-linux-arm64-musl": "0.1.4",
128
- "nokhwa-node-win32-arm64-msvc": "0.1.4",
129
- "nokhwa-node-wasm32-wasi": "0.1.4"
109
+ "nokhwa-node-win32-x64-msvc": "0.1.5",
110
+ "nokhwa-node-darwin-x64": "0.1.5",
111
+ "nokhwa-node-linux-x64-gnu": "0.1.5",
112
+ "nokhwa-node-linux-x64-musl": "0.1.5",
113
+ "nokhwa-node-linux-arm64-gnu": "0.1.5",
114
+ "nokhwa-node-win32-ia32-msvc": "0.1.5",
115
+ "nokhwa-node-darwin-arm64": "0.1.5",
116
+ "nokhwa-node-freebsd-x64": "0.1.5",
117
+ "nokhwa-node-linux-arm64-musl": "0.1.5",
118
+ "nokhwa-node-win32-arm64-msvc": "0.1.5",
119
+ "nokhwa-node-wasm32-wasi": "0.1.5"
130
120
  }
131
121
  }