|
2 | 2 |
|
3 | 3 | [](http://multiformats.io)
|
4 | 4 | [](https://codecov.io/gh/multiformats/js-multiformats)
|
5 |
| -[](https://github.com/multiformats/js-multiformats/actions/workflows/js-test-and-release.yml) |
| 5 | +[](https://github.com/multiformats/js-multiformats/actions/workflows/js-test-and-release.yml?query=branch%3Amaster) |
6 | 6 |
|
7 | 7 | > Interface for multihash, multicodec, multibase and CID
|
8 | 8 |
|
9 | 9 | ## Table of contents <!-- omit in toc -->
|
10 | 10 |
|
11 | 11 | - [Install](#install)
|
| 12 | + - [Browser `<script>` tag](#browser-script-tag) |
12 | 13 | - [Interfaces](#interfaces)
|
13 | 14 | - [Creating Blocks](#creating-blocks)
|
14 | 15 | - [Multibase Encoders / Decoders / Codecs](#multibase-encoders--decoders--codecs)
|
|
20 | 21 | - [Multibase codecs](#multibase-codecs)
|
21 | 22 | - [Multihash hashers](#multihash-hashers-1)
|
22 | 23 | - [IPLD codecs (multicodec)](#ipld-codecs-multicodec)
|
| 24 | +- [API Docs](#api-docs) |
23 | 25 | - [License](#license)
|
24 | 26 | - [Contribution](#contribution)
|
25 | 27 |
|
|
29 | 31 | $ npm i multiformats
|
30 | 32 | ```
|
31 | 33 |
|
| 34 | +### Browser `<script>` tag |
| 35 | + |
| 36 | +Loading this module through a script tag will make it's exports available as `Multiformats` in the global namespace. |
| 37 | + |
| 38 | +```html |
| 39 | +<script src="https://unpkg.com/multiformats/dist/index.min.js"></script> |
| 40 | +``` |
| 41 | + |
32 | 42 | ## Interfaces
|
33 | 43 |
|
34 | 44 | This library defines common interfaces and low level building blocks for various interrelated multiformat technologies (multicodec, multihash, multibase, and CID). They can be used to implement custom base encoders / decoders / codecs, codec encoders /decoders and multihash hashers that comply to the interface that layers above assume.
|
@@ -233,6 +243,10 @@ Other (less useful) bases implemented in [multiformats/js-multiformats](https://
|
233 | 243 | | `dag-pb` | `@ipld/dag-pb` | [ipld/js-dag-pb](https://github.com/ipld/js-dag-pb) |
|
234 | 244 | | `dag-jose` | `dag-jose` | [ceramicnetwork/js-dag-jose](https://github.com/ceramicnetwork/js-dag-jose) |
|
235 | 245 |
|
| 246 | +## API Docs |
| 247 | + |
| 248 | +- <https://multiformats.github.io/js-multiformats> |
| 249 | + |
236 | 250 | ## License
|
237 | 251 |
|
238 | 252 | Licensed under either of
|
|
0 commit comments