initial-logo 0.3.0 → 0.3.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 CHANGED
@@ -63,6 +63,34 @@ const gradientLogo = generateLogo({
63
63
  });
64
64
  ```
65
65
 
66
+ ## CLI Usage
67
+
68
+ You can also use the CLI to generate logos directly from the terminal.
69
+
70
+ ```bash
71
+ # Generate a logo and save to file
72
+ npx initial-logo -t TS -o logo.svg
73
+
74
+ # Customize colors and size
75
+ npx initial-logo -t JS -s 200 --textColor "#000000" --backgroundColor "#f7df1e" -o js-logo.svg
76
+
77
+ # Gradient example
78
+ npx initial-logo -t GR --textColor "#ff0000" --textColor "#0000ff" --backgroundColor "#222222" --backgroundColor "#444444" -o gradient.svg
79
+ ```
80
+
81
+ ### Options
82
+
83
+ | Option | Alias | Description | Default |
84
+ |---|---|---|---|
85
+ | `--text` | `-t` | Logo text (required) | - |
86
+ | `--size` | `-s` | Logo size in pixels | `512` |
87
+ | `--output` | `-o` | Output file path | `stdout` |
88
+ | `--textColor` | | Text color (repeat for gradient) | `#ffffff` |
89
+ | `--backgroundColor` | | Background color (repeat for gradient) | `#000000` |
90
+ | `--fontSource` | | Font source URL | - |
91
+ | `--fontSize` | | Font size | - |
92
+ | `--help` | `-h` | Display help message | - |
93
+
66
94
  ## API
67
95
 
68
96
  ### `generateLogo(options: LogoOptions): HTMLDivElement`
package/dist/cli.cjs CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  "use strict";
2
3
 
3
4
  // src/cli.ts
package/dist/cli.d.cts CHANGED
@@ -1,2 +1 @@
1
-
2
- export { }
1
+ #!/usr/bin/env node
package/dist/cli.d.ts CHANGED
@@ -1,2 +1 @@
1
-
2
- export { }
1
+ #!/usr/bin/env node
package/dist/cli.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  import {
2
3
  generateSvg
3
4
  } from "./chunk-6FA2C7I6.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "initial-logo",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Generate JavaScript/TypeScript style logo",
5
5
  "keywords": [
6
6
  "logo",