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 +28 -0
- package/dist/cli.cjs +1 -0
- package/dist/cli.d.cts +1 -2
- package/dist/cli.d.ts +1 -2
- package/dist/cli.js +1 -0
- package/package.json +1 -1
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
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