node-libcamera 0.1.8 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/utils.d.ts CHANGED
@@ -1,6 +1,24 @@
1
1
  /// <reference types="node" />
2
2
  import { ExecOptionsWithBufferEncoding } from 'child_process';
3
- import { LibCamera } from './options';
3
+ import LibCamera from './LibCamera';
4
+ /**
5
+ * Get the string command of a base command with an array of args
6
+ * @param base The base command without any flags
7
+ * @param args An array of args command args
8
+ * @returns The command string
9
+ */
4
10
  export declare function cmd(base: string, args?: string[]): string;
5
- export declare function run(command: string, options?: ExecOptionsWithBufferEncoding): Promise<unknown>;
11
+ /**
12
+ * Execute a command
13
+ * @param command The command string
14
+ * @param options Any options to pass to the node exec function
15
+ * @returns A promise that resolves to the stdout of the command that was run
16
+ */
17
+ export declare function run(command: string, options?: ExecOptionsWithBufferEncoding): Promise<string>;
18
+ /**
19
+ * Convert libcamera options to command line args
20
+ * @param options Options for the libcamera service
21
+ * @returns An array of command line args
22
+ */
6
23
  export declare function convertOptionsToCmdArgs(options: Partial<LibCamera.OptionsObject>): string[];
24
+ export declare const optionConverterMap: Partial<Record<LibCamera.OptionKeys, LibCamera.OptionConverter>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-libcamera",
3
- "version": "0.1.8",
3
+ "version": "1.0.2",
4
4
  "description": "A Node.js wrapper for the Raspberry Pi libcamera API",
5
5
  "keywords": [
6
6
  "raspberry pi",