|
1 | 1 | # @libp2p/bootstrap <!-- omit in toc -->
|
2 | 2 |
|
3 | 3 | [](http://libp2p.io/)
|
4 |
| -[](http://webchat.freenode.net/?channels=%23libp2p) |
5 | 4 | [](https://discuss.libp2p.io)
|
6 | 5 | [](https://codecov.io/gh/libp2p/js-libp2p-bootstrap)
|
7 |
| -[](https://github.com/libp2p/js-libp2p-bootstrap/actions/workflows/js-test-and-release.yml) |
| 6 | +[](https://github.com/libp2p/js-libp2p-bootstrap/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) |
8 | 7 |
|
9 | 8 | > Node.js IPFS Implementation of the railing process of a Node through a bootstrap peer list
|
10 | 9 |
|
11 | 10 | ## Table of contents <!-- omit in toc -->
|
12 | 11 |
|
13 | 12 | - [Install](#install)
|
| 13 | + - [Browser `<script>` tag](#browser-script-tag) |
14 | 14 | - [Usage](#usage)
|
15 | 15 | - [Contribute](#contribute)
|
| 16 | +- [API Docs](#api-docs) |
16 | 17 | - [License](#license)
|
17 | 18 | - [Contribute](#contribute-1)
|
18 | 19 |
|
|
22 | 23 | $ npm i @libp2p/bootstrap
|
23 | 24 | ```
|
24 | 25 |
|
| 26 | +### Browser `<script>` tag |
| 27 | + |
| 28 | +Loading this module through a script tag will make it's exports available as `Libp2pBootstrap` in the global namespace. |
| 29 | + |
| 30 | +```html |
| 31 | +<script src="https://unpkg.com/@libp2p/bootstrap/dist/index.min.js"></script> |
| 32 | +``` |
| 33 | + |
25 | 34 | ## Usage
|
26 | 35 |
|
27 | 36 | The configured bootstrap peers will be discovered after the configured timeout. This will ensure
|
@@ -86,6 +95,10 @@ The libp2p implementation in JavaScript is a work in progress. As such, there ar
|
86 | 95 | - 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.
|
87 | 96 | - **Perform code reviews**. More eyes will help a) speed the project along b) ensure quality and c) reduce possible future bugs.
|
88 | 97 |
|
| 98 | +## API Docs |
| 99 | + |
| 100 | +- <https://libp2p.github.io/js-libp2p-bootstrap> |
| 101 | + |
89 | 102 | ## License
|
90 | 103 |
|
91 | 104 | Licensed under either of
|
|
0 commit comments