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/README.md +11 -5
- package/dist/LibCamera.d.ts +587 -0
- package/dist/index.d.ts +12 -4
- package/dist/node-libcamera.cjs.development.js +65 -7
- package/dist/node-libcamera.cjs.development.js.map +1 -1
- package/dist/node-libcamera.cjs.production.min.js +1 -1
- package/dist/node-libcamera.cjs.production.min.js.map +1 -1
- package/dist/node-libcamera.esm.js +64 -8
- package/dist/node-libcamera.esm.js.map +1 -1
- package/dist/utils.d.ts +20 -2
- package/package.json +1 -1
- package/src/LibCamera.ts +662 -0
- package/src/index.ts +11 -4
- package/src/utils.ts +44 -4
- package/dist/options.d.ts +0 -130
- package/src/options.ts +0 -149
package/dist/utils.d.ts
CHANGED
@@ -1,6 +1,24 @@
|
|
1
1
|
/// <reference types="node" />
|
2
2
|
import { ExecOptionsWithBufferEncoding } from 'child_process';
|
3
|
-
import
|
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
|
-
|
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>>;
|