node-libcamera 0.1.7 → 1.0.1

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,8 +1,29 @@
1
1
  {
2
2
  "name": "node-libcamera",
3
- "author": "Hussain Abbas",
4
- "version": "0.1.7",
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",