@barbapapazes/video-toolkit 0.2.0 → 0.4.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 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 from a global config file.
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 { };