@vp-tw/ptt-link-switcher 0.1.1 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +27 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -13,6 +13,33 @@ if (result.ok) {
13
13
  }
14
14
  ```
15
15
 
16
+ `generateProviderLinks` returns links in provider registry order:
17
+
18
+ ```json
19
+ [
20
+ {
21
+ "id": "official",
22
+ "label": "PTT 官方",
23
+ "url": "https://www.ptt.cc/bbs/Browsers/M.1750772319.A.F2C.html"
24
+ },
25
+ {
26
+ "id": "beptt",
27
+ "label": "BePTT",
28
+ "url": "https://bbs.beptt.tw/Browsers/M.1750772319.A.F2C"
29
+ },
30
+ {
31
+ "id": "moptt",
32
+ "label": "MoPTT",
33
+ "url": "https://moptt.tw/p/Browsers.M.1750772319.A.F2C"
34
+ },
35
+ {
36
+ "id": "pttweb",
37
+ "label": "PTTweb",
38
+ "url": "https://www.pttweb.cc/bbs/Browsers/M.1750772319.A.F2C"
39
+ }
40
+ ]
41
+ ```
42
+
16
43
  Provider support is adapter-based. Pass custom adapters to `parsePttInput` and `generateProviderLinks` to extend parsing and URL generation without changing the built-in registry.
17
44
 
18
45
  The package is framework-free and does not access the DOM, network, or storage.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vp-tw/ptt-link-switcher",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Parse and convert PTT article links across supported readers—entirely offline.",
5
5
  "license": "MIT",
6
6
  "repository": {