@libp2p/pubsub 8.0.7 → 8.0.8-16a87076

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -1,5 +1,3 @@
1
- # @libp2p/pubsub <!-- omit in toc -->
2
-
3
1
  [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
4
2
  [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)
5
3
  [![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p)
@@ -7,22 +5,13 @@
7
5
 
8
6
  > libp2p pubsub base class
9
7
 
10
- ## Table of contents <!-- omit in toc -->
11
-
12
- - [Install](#install)
13
- - [Browser `<script>` tag](#browser-script-tag)
14
- - [Usage](#usage)
15
- - [API Docs](#api-docs)
16
- - [License](#license)
17
- - [Contribution](#contribution)
18
-
19
- ## Install
8
+ # Install
20
9
 
21
10
  ```console
22
11
  $ npm i @libp2p/pubsub
23
12
  ```
24
13
 
25
- ### Browser `<script>` tag
14
+ ## Browser `<script>` tag
26
15
 
27
16
  Loading this module through a script tag will make it's exports available as `Libp2pPubsub` in the global namespace.
28
17
 
@@ -30,31 +19,17 @@ Loading this module through a script tag will make it's exports available as `Li
30
19
  <script src="https://unpkg.com/@libp2p/pubsub/dist/index.min.js"></script>
31
20
  ```
32
21
 
33
- ## Usage
34
-
35
- ```console
36
- npm i @libp2p/pubsub
37
- ```
38
-
39
- ```javascript
40
- import { PubSubBaseProtocol } from '@libp2p/pubsub'
41
-
42
- class MyPubsubImplementation extends PubSubBaseProtocol {
43
- // .. extra methods here
44
- }
45
- ```
46
-
47
- ## API Docs
22
+ # API Docs
48
23
 
49
24
  - <https://libp2p.github.io/js-libp2p/modules/_libp2p_pubsub.html>
50
25
 
51
- ## License
26
+ # License
52
27
 
53
28
  Licensed under either of
54
29
 
55
30
  - Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
56
31
  - MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
57
32
 
58
- ## Contribution
33
+ # Contribution
59
34
 
60
35
  Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.