|
1 | 1 | # @chainsafe/libp2p-yamux <!-- omit in toc -->
|
2 | 2 |
|
3 |
| -[](http://chainsafe.io) |
4 | 3 | [](https://codecov.io/gh/ChainSafe/js-libp2p-yamux)
|
5 |
| -[](https://github.com/ChainSafe/js-libp2p-yamux/actions/workflows/js-test-and-release.yml) |
| 4 | +[](https://github.com/ChainSafe/js-libp2p-yamux/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) |
6 | 5 |
|
7 | 6 | > Yamux stream multiplexer for libp2p
|
8 | 7 |
|
9 | 8 | ## Table of contents <!-- omit in toc -->
|
10 | 9 |
|
11 | 10 | - [Install](#install)
|
| 11 | + - [Browser `<script>` tag](#browser-script-tag) |
12 | 12 | - [Usage](#usage)
|
13 | 13 | - [API](#api)
|
14 | 14 | - [Contribute](#contribute)
|
| 15 | +- [API Docs](#api-docs) |
15 | 16 | - [License](#license)
|
16 |
| -- [Contribute](#contribute-1) |
| 17 | +- [Contribution](#contribution) |
17 | 18 |
|
18 | 19 | ## Install
|
19 | 20 |
|
20 | 21 | ```console
|
21 | 22 | $ npm i @chainsafe/libp2p-yamux
|
22 | 23 | ```
|
23 | 24 |
|
| 25 | +### Browser `<script>` tag |
| 26 | + |
| 27 | +Loading this module through a script tag will make it's exports available as `ChainsafeLibp2pYamux` in the global namespace. |
| 28 | + |
| 29 | +```html |
| 30 | +<script src="https://unpkg.com/@chainsafe/libp2p-yamux/dist/index.min.js"></script> |
| 31 | +``` |
| 32 | + |
24 | 33 | ## Usage
|
25 | 34 |
|
26 | 35 | ```js
|
@@ -91,13 +100,17 @@ The libp2p implementation in JavaScript is a work in progress. As such, there ar
|
91 | 100 | - Go through the modules and **check out existing issues**. This is especially useful for modules in active development. Some knowledge of IPFS/libp2p may be required, as well as the infrastructure behind it - for instance, you may need to read up on p2p and more complex operations like muxing to be able to help technically.
|
92 | 101 | - **Perform code reviews**. More eyes will help a) speed the project along b) ensure quality and c) reduce possible future bugs.
|
93 | 102 |
|
| 103 | +## API Docs |
| 104 | + |
| 105 | +- <https://ChainSafe.github.io/js-libp2p-yamux> |
| 106 | + |
94 | 107 | ## License
|
95 | 108 |
|
96 | 109 | Licensed under either of
|
97 | 110 |
|
98 | 111 | - Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
|
99 | 112 | - MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
|
100 | 113 |
|
101 |
| -## Contribute |
| 114 | +## Contribution |
102 | 115 |
|
103 | 116 | 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.
|
0 commit comments