44[ ![ codecov] ( https://img.shields.io/codecov/c/github/multiformats/js-multiaddr-to-uri.svg?style=flat-square )] ( https://codecov.io/gh/multiformats/js-multiaddr-to-uri )
55[ ![ CI] ( https://img.shields.io/github/actions/workflow/status/multiformats/js-multiaddr-to-uri/js-test-and-release.yml?branch=master\& style=flat-square )] ( https://github.com/multiformats/js-multiaddr-to-uri/actions/workflows/js-test-and-release.yml?query=branch%3Amaster )
66
7- > Convert a Multiaddr to a URI /dnsaddr/ipfs.io/http -> < http://ipfs.io >
7+ > Convert a Multiaddr to a URI
88
9- ## Table of contents <!-- omit in toc -->
9+ # About
1010
11- - [ Install] ( #install )
12- - [ Browser ` <script> ` tag] ( #browser-script-tag )
13- - [ Usage] ( #usage )
14- - [ API Docs] ( #api-docs )
15- - [ License] ( #license )
16- - [ Contribution] ( #contribution )
11+ This module allows easy conversion of Multiaddrs to URLs.
1712
18- ## Install
19-
20- ``` console
21- $ npm i @multiformats/multiaddr-to-uri
22- ```
23-
24- ### Browser ` <script> ` tag
25-
26- Loading this module through a script tag will make it's exports available as ` MultiformatsMultiaddrToUri ` in the global namespace.
27-
28- ``` html
29- <script src =" https://unpkg.com/@multiformats/multiaddr-to-uri/dist/index.min.js" ></script >
30- ```
31-
32- ## Usage
13+ ## Example - Converting multiaddrs to URLs
3314
3415``` js
3516import { multiaddrToUri } from ' @multiformats/multiaddr-to-uri'
@@ -54,17 +35,31 @@ Note:
5435 - is not a valid multiaddr
5536 - is not supported as a URI e.g. circuit
5637
57- ## API Docs
38+ # Install
39+
40+ ``` console
41+ $ npm i @multiformats/multiaddr-to-uri
42+ ```
43+
44+ ## Browser ` <script> ` tag
45+
46+ Loading this module through a script tag will make it's exports available as ` MultiformatsMultiaddrToUri ` in the global namespace.
47+
48+ ``` html
49+ <script src =" https://unpkg.com/@multiformats/multiaddr-to-uri/dist/index.min.js" ></script >
50+ ```
51+
52+ # API Docs
5853
5954- < https://multiformats.github.io/js-multiaddr-to-uri >
6055
61- ## License
56+ # License
6257
6358Licensed under either of
6459
6560- Apache 2.0, ([ LICENSE-APACHE] ( LICENSE-APACHE ) / < http://www.apache.org/licenses/LICENSE-2.0 > )
6661- MIT ([ LICENSE-MIT] ( LICENSE-MIT ) / < http://opensource.org/licenses/MIT > )
6762
68- ## Contribution
63+ # Contribution
6964
7065Unless 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