Skip to content

Commit a63432e

Browse files
daviddiasjacobheun
authored andcommitted
feat: use package-table vs custom script
docs: add note on how to generate table
1 parent 69f7264 commit a63432e

File tree

3 files changed

+87
-146
lines changed

3 files changed

+87
-146
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,8 @@ N/A
479479

480480
List of packages currently in existence for libp2p
481481

482+
> This table is generated using the module `package-table` with `package-table --data=package-list.json`.
483+
482484
| Package | Version | Deps | CI | Coverage |
483485
| ---------|---------|---------|---------|--------- |
484486
| **Libp2p** |

package-list.json

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"columns": [
3+
"Package",
4+
"Version",
5+
"Deps",
6+
"CI",
7+
"Coverage"
8+
],
9+
"rows": [
10+
"Libp2p",
11+
["libp2p/interface-libp2p", "interface-libp2p"],
12+
["libp2p/js-libp2p", "libp2p"],
13+
14+
"Connection",
15+
["libp2p/interface-connection", "interface-connection"],
16+
17+
"Transport",
18+
["libp2p/interface-transport", "interface-transport"],
19+
["libp2p/js-libp2p-tcp", "libp2p-tcp"],
20+
["libp2p/js-libp2p-udp", "libp2p-udp"],
21+
["libp2p/js-libp2p-udt", "libp2p-udt"],
22+
["libp2p/js-libp2p-utp", "libp2p-utp"],
23+
["libp2p/js-libp2p-webrtc-direct", "libp2p-webrtc-direct"],
24+
["libp2p/js-libp2p-webrtc-star", "libp2p-webrtc-star"],
25+
["libp2p/js-libp2p-websockets", "libp2p-websockets"],
26+
["libp2p/js-libp2p-websocket-star", "libp2p-websocket-star"],
27+
["libp2p/js-libp2p-websocket-star-rendezvous", "libp2p-websocket-star-rendezvous"],
28+
29+
"Crypto Channels",
30+
["libp2p/js-libp2p-secio", "libp2p-secio"],
31+
32+
"Stream Muxers",
33+
["libp2p/interface-stream-muxer", "interface-stream-muxer"],
34+
["libp2p/js-libp2p-mplex", "libp2p-mplex"],
35+
["libp2p/js-libp2p-spdy", "libp2p-spdy"],
36+
37+
"Discovery",
38+
["libp2p/interface-peer-discovery", "interface-peer-discovery"],
39+
["libp2p/js-libp2p-bootstrap", "libp2p-bootstrap"],
40+
["libp2p/js-libp2p-kad-dht", "libp2p-kad-dht"],
41+
["libp2p/js-libp2p-mdns", "libp2p-mdns"],
42+
["libp2p/js-libp2p-rendezvous", "libp2p-rendezvous"],
43+
["libp2p/js-libp2p-webrtc-star", "libp2p-webrtc-star"],
44+
["libp2p/js-libp2p-websocket-star", "libp2p-websocket-star"],
45+
46+
"NAT Traversal",
47+
["libp2p/js-libp2p-circuit", "libp2p-circuit"],
48+
["libp2p/js-libp2p-nat-mngr", "libp2p-nat-mngr"],
49+
50+
"Data Types",
51+
["libp2p/js-peer-book", "peer-book"],
52+
["libp2p/js-peer-id", "peer-id"],
53+
["libp2p/js-peer-info", "peer-info"],
54+
55+
"Content Routing",
56+
["libp2p/interface-content-routing", "interface-content-routing"],
57+
["libp2p/js-libp2p-delegated-content-routing", "libp2p-delegated-content-routing"],
58+
["libp2p/js-libp2p-kad-dht", "libp2p-kad-dht"],
59+
60+
"Peer Routing",
61+
["libp2p/interface-peer-routing", "interface-peer-routing"],
62+
["libp2p/js-libp2p-delegated-peer-routing", "libp2p-delegated-peer-routing"],
63+
["libp2p/js-libp2p-kad-dht", "libp2p-kad-dht"],
64+
65+
"Record Store",
66+
["libp2p/interface-record-store", "interface-record-store"],
67+
["libp2p/js-libp2p-record", "libp2p-record"],
68+
69+
"Generics",
70+
["libp2p/js-libp2p-connection-manager", "libp2p-connection-manager"],
71+
["libp2p/js-libp2p-crypto", "libp2p-crypto"],
72+
["libp2p/js-libp2p-crypto-secp256k1", "libp2p-crypto-secp256k1"],
73+
["libp2p/js-libp2p-switch", "libp2p-switch"],
74+
75+
"Extensions",
76+
["libp2p/js-libp2p-floodsub", "libp2p-floodsub"],
77+
["libp2p/js-libp2p-identify", "libp2p-identify"],
78+
["libp2p/js-libp2p-keychain", "libp2p-keychain"],
79+
["libp2p/js-libp2p-ping", "libp2p-ping"],
80+
["libp2p/js-libp2p-pnet", "libp2p-pnet"],
81+
82+
"Utilities",
83+
["libp2p/js-p2pcat", "p2pcat"]
84+
]
85+
}

scripts/generate-package-table-for-readme.js

-146
This file was deleted.

0 commit comments

Comments
 (0)