@dirwell/share-image 0.0.2 → 0.0.3
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 +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Optional build-time metadata and 1200 × 630 PNG images. Install this package on
|
|
|
7
7
|
## Save a share image
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
npm install @dirwell/share-image@0.0.
|
|
10
|
+
npm install @dirwell/share-image@0.0.3
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Save this as `image.mjs`, then run `node image.mjs`:
|
|
@@ -28,7 +28,7 @@ The result is a local 1200 × 630 PNG. No explorer build or browser runtime is r
|
|
|
28
28
|
## Add metadata to an explorer
|
|
29
29
|
|
|
30
30
|
```sh
|
|
31
|
-
npm install @dirwell/core@0.0.
|
|
31
|
+
npm install @dirwell/core@0.0.3 @dirwell/theme-plain@0.0.3 @dirwell/share-image@0.0.3
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
Create `files/note.txt`, save the following as `build.mjs` and run `node build.mjs`. Serve the complete `public/downloads` folder over HTTP; its pages reference the generated metadata/image assets.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dirwell/share-image",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Optional build-time metadata and PNG share-image rendering.",
|
|
5
5
|
"homepage": "https://vp-tw.github.io/dirwell/metadata/",
|
|
6
6
|
"bugs": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"tag": "latest"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@dirwell/core": "0.0.
|
|
34
|
+
"@dirwell/core": "0.0.3",
|
|
35
35
|
"@resvg/resvg-js": "2.6.2",
|
|
36
36
|
"fontkit": "2.0.4"
|
|
37
37
|
},
|