multiformats / multiformats/js-multiformats

Loading through a script tag misses many exports

Open
#280 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
268
Forks
57
PR merge metrics
No merged PRs in 30d

Description

If I try to simply include microformats using the script tag provided in the readme, I can only get CID, bytes, digest, hasher and varint:

<script src="https://unpkg.com/multiformats/dist/index.min.js"></script>
<script>
console.log(Multiformats);
</script>

image

Either the README misses something, or the dist/index.min.js does! For instance how can I get codecs from multiformats/codecs?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the README script-tag example and inspect dist/index.min.js alongside the multiformats/codecs entry point. Reproduce the browser global behavior and compare the available exports; done means the documented script usage exposes the expected exports or clearly documents the supported alternative.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.