@libp2p/http-utils 0.0.0

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.
package/README.md ADDED
@@ -0,0 +1,56 @@
1
+ # @libp2p/http-utils
2
+
3
+ [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
4
+ [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)
5
+ [![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-http.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-http)
6
+ [![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-http/js-test-and-release.yml?branch=main\&style=flat-square)](https://github.com/libp2p/js-libp2p-http/actions/workflows/js-test-and-release.yml?query=branch%3Amain)
7
+
8
+ > Shared utils and common code for HTTP modules
9
+
10
+ # About
11
+
12
+ <!--
13
+
14
+ !IMPORTANT!
15
+
16
+ Everything in this README between "# About" and "# Install" is automatically
17
+ generated and will be overwritten the next time the doc generator is run.
18
+
19
+ To make changes to this section, please update the @packageDocumentation section
20
+ of src/index.js or src/index.ts
21
+
22
+ To experiment with formatting, please run "npm run docs" from the root of this
23
+ repo and examine the changes made.
24
+
25
+ -->
26
+
27
+ Contains shared code and utilities used by `@libp2p/http-*` modules.
28
+
29
+ # Install
30
+
31
+ ```console
32
+ $ npm i @libp2p/http-utils
33
+ ```
34
+
35
+ ## Browser `<script>` tag
36
+
37
+ Loading this module through a script tag will make its exports available as `Libp2pHttpUtils` in the global namespace.
38
+
39
+ ```html
40
+ <script src="https://unpkg.com/@libp2p/http-utils/dist/index.min.js"></script>
41
+ ```
42
+
43
+ # API Docs
44
+
45
+ - <https://libp2p.github.io/js-libp2p-http/modules/_libp2p_http_utils.html>
46
+
47
+ # License
48
+
49
+ Licensed under either of
50
+
51
+ - Apache 2.0, ([LICENSE-APACHE](https://github.com/libp2p/js-libp2p-http/blob/main/packages/http-utils/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
52
+ - MIT ([LICENSE-MIT](https://github.com/libp2p/js-libp2p-http/blob/main/packages/http-utils/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
53
+
54
+ # Contribution
55
+
56
+ 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.