node-libcamera 0.1.7 → 1.0.1
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 +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 +23 -2
- 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>>;
|
package/package.json
CHANGED
@@ -1,8 +1,29 @@
|
|
1
1
|
{
|
2
2
|
"name": "node-libcamera",
|
3
|
-
"
|
4
|
-
"
|
3
|
+
"version": "1.0.1",
|
4
|
+
"description": "A Node.js wrapper for the Raspberry Pi libcamera API",
|
5
|
+
"keywords": [
|
6
|
+
"raspberry pi",
|
7
|
+
"camera",
|
8
|
+
"video",
|
9
|
+
"streaming",
|
10
|
+
"stream",
|
11
|
+
"libcamera",
|
12
|
+
"node-libcamera",
|
13
|
+
"raspicam",
|
14
|
+
"raspivid",
|
15
|
+
"raspistill",
|
16
|
+
"libcamera-still",
|
17
|
+
"libcamera-vid",
|
18
|
+
"libcamera-jpeg"
|
19
|
+
],
|
20
|
+
"homepage": "https://github.com/superhussain/node-libcamera#readme",
|
21
|
+
"bugs": {
|
22
|
+
"url": "https://github.com/superhussain/node-libcamera/issues",
|
23
|
+
"email": "howdy@hussainabbas.com"
|
24
|
+
},
|
5
25
|
"license": "MIT",
|
26
|
+
"author": "Hussain Abbas <howdy@hussainabbas.com> (https://hussainabbas.com)",
|
6
27
|
"main": "dist/index.js",
|
7
28
|
"typings": "dist/index.d.ts",
|
8
29
|
"module": "dist/node-libcamera.esm.js",
|