@barbapapazes/video-toolkit 0.1.0 → 0.3.0
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 +20 -4
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +13 -13
- package/dist/{dist-CDY8lwMJ.mjs → dist-DbgTcLIx.mjs} +4 -4
- package/dist/index.d.mts +31 -0
- package/dist/index.mjs +1 -0
- package/dist/{multipart-parser-DMrr6Wla.mjs → multipart-parser-67La25QJ.mjs} +1 -1
- package/dist/{node-Xk6BB16L.mjs → node-LMiQoyLP.mjs} +1 -1
- package/package.json +9 -1
- /package/dist/{dist-U7tm8DJ9.mjs → dist-6F1kEZsq.mjs} +0 -0
- /package/dist/{json5-DLnwT-qd.mjs → json5-CqfoYXO4.mjs} +0 -0
- /package/dist/{jsonc-Cqp8CO2B.mjs → jsonc-CscIKind.mjs} +0 -0
- /package/dist/{toml-DtpvDoI0.mjs → toml-ctrC-cFf.mjs} +0 -0
- /package/dist/{yaml-r2t34r7_.mjs → yaml-BXCvYnwM.mjs} +0 -0
package/README.md
CHANGED
|
@@ -30,18 +30,33 @@ pnpm install @barbapapazes/video-toolkit
|
|
|
30
30
|
|
|
31
31
|
## Configuration
|
|
32
32
|
|
|
33
|
-
The toolkit uses [c12](https://github.com/unjs/c12) for configuration loading
|
|
33
|
+
The toolkit uses [c12](https://github.com/unjs/c12) for configuration loading. You can configure the tool using:
|
|
34
|
+
- **Global configuration**: `~/.video-toolkitrc` (applies to all projects)
|
|
35
|
+
- **Local configuration**: `video-toolkit.config.{ts,js,mjs,json}` in your project directory
|
|
36
|
+
|
|
37
|
+
### Global Configuration
|
|
34
38
|
|
|
35
39
|
Create a configuration file at `~/.video-toolkitrc`:
|
|
36
40
|
|
|
37
41
|
```json
|
|
38
42
|
{
|
|
39
|
-
"openaiApiKey": "your-api-key-here"
|
|
40
|
-
"language": "fr",
|
|
41
|
-
"model": "whisper-1"
|
|
43
|
+
"openaiApiKey": "your-api-key-here"
|
|
42
44
|
}
|
|
43
45
|
```
|
|
44
46
|
|
|
47
|
+
### Local Configuration
|
|
48
|
+
|
|
49
|
+
Create a `video-toolkit.config.ts` file in your project directory for project-specific settings:
|
|
50
|
+
|
|
51
|
+
```typescript
|
|
52
|
+
import { defineConfig } from '@Barbapapazes/video-toolkit'
|
|
53
|
+
|
|
54
|
+
export default defineConfig({
|
|
55
|
+
language: 'en',
|
|
56
|
+
templatesDir: './templates'
|
|
57
|
+
})
|
|
58
|
+
```
|
|
59
|
+
|
|
45
60
|
### Configuration Options
|
|
46
61
|
|
|
47
62
|
| Option | Type | Default | Description |
|
|
@@ -49,6 +64,7 @@ Create a configuration file at `~/.video-toolkitrc`:
|
|
|
49
64
|
| `openaiApiKey` | string | - | **Required.** Your OpenAI API key |
|
|
50
65
|
| `language` | string | `'fr'` | Language code for transcription (e.g., 'en', 'fr', 'es', 'de') |
|
|
51
66
|
| `model` | string | `'whisper-1'` | OpenAI Whisper model to use |
|
|
67
|
+
| `templatesDir` | string | `undefined` | Directory where SVG templates are stored. Can be absolute or relative to current working directory. If not set, uses `~/.config/video-toolkit/templates/`. |
|
|
52
68
|
|
|
53
69
|
## Usage
|
|
54
70
|
|
package/dist/cli.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|