@jayson991/svg2font-cli 0.0.2 → 1.0.2
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 +19 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -17,6 +17,8 @@ For the programmatic TypeScript/napi API, see [`@jayson991/svg2font`](../svg2fon
|
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
20
|
+
### Via npm
|
|
21
|
+
|
|
20
22
|
```bash
|
|
21
23
|
# Global CLI
|
|
22
24
|
npm install -g @jayson991/svg2font-cli
|
|
@@ -28,6 +30,23 @@ pnpm add -g @jayson991/svg2font-cli
|
|
|
28
30
|
yarn global add @jayson991/svg2font-cli
|
|
29
31
|
```
|
|
30
32
|
|
|
33
|
+
### Via curl (no npm)
|
|
34
|
+
|
|
35
|
+
Install the pre-compiled native binary straight from the GitHub release — no Node.js or npm required:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
curl -fsSL https://raw.githubusercontent.com/jaysonwu991/svg2font/main/scripts/install.sh | bash
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
The installer detects your OS and architecture, downloads the matching binary from the latest
|
|
42
|
+
release, and adds it to your `PATH` (installed to `~/.svg2font/bin`). Environment overrides:
|
|
43
|
+
|
|
44
|
+
| Variable | Description | Default |
|
|
45
|
+
|----------|-------------|---------|
|
|
46
|
+
| `SVG2FONT_HOME` | Install root directory | `~/.svg2font` |
|
|
47
|
+
| `SVG2FONT_INSTALL_DIR` | Destination directory | `$SVG2FONT_HOME/bin` |
|
|
48
|
+
| `SVG2FONT_VERSION` | Pin a release (e.g. `1.2.3` or `v1.2.3`) | latest |
|
|
49
|
+
|
|
31
50
|
## Quick Start
|
|
32
51
|
|
|
33
52
|
**Step 1:** Place your SVG icons in a folder:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jayson991/svg2font-cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Generate icon fonts from SVG files — CLI",
|
|
5
5
|
"bin": {
|
|
6
6
|
"svg2font": "bin/svg2font.js"
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"typecheck": "tsc"
|
|
17
17
|
},
|
|
18
18
|
"optionalDependencies": {
|
|
19
|
-
"@jayson991/svg2font-cli-darwin-arm64": "
|
|
20
|
-
"@jayson991/svg2font-cli-darwin-x64": "
|
|
21
|
-
"@jayson991/svg2font-cli-linux-arm64": "
|
|
22
|
-
"@jayson991/svg2font-cli-linux-x64": "
|
|
23
|
-
"@jayson991/svg2font-cli-win32-x64": "
|
|
19
|
+
"@jayson991/svg2font-cli-darwin-arm64": "1.0.2",
|
|
20
|
+
"@jayson991/svg2font-cli-darwin-x64": "1.0.2",
|
|
21
|
+
"@jayson991/svg2font-cli-linux-arm64": "1.0.2",
|
|
22
|
+
"@jayson991/svg2font-cli-linux-x64": "1.0.2",
|
|
23
|
+
"@jayson991/svg2font-cli-win32-x64": "1.0.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^24.0.0",
|