Skip to content

This module reexports the Js-IPFS browser bundle with its annotated types",

Notifications You must be signed in to change notification settings

oliveriosousa/ipfs-core-dist

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipfs-core-dist

The NPM packages ipfs and ipfs-core both have type annotations using docstrings now, but because they're still not ESM capable and only ship Node code by default Snowpack et al try to import it directly into the browser which fails.

The developers seem to have their Webpack based workflow settled, and that's pretty much the easiest way to go about it. But for those of us who would rather not, thank you, this is a modern JavaScript module that reexports the browser dist bundles from within the ipfs-core package as well as its type for convenience.

For now I am installing it from GitHub directly: npm i 5310/ipfs-core-dist. But once libp2p/js-libp2p-crypto pushes the node-forge dependency update to NPM I might push this under my NPM namespace as well.

I just use it with a simple import IPFS from 'ipfs-core-dist in any Snowpack project.

About

This module reexports the Js-IPFS browser bundle with its annotated types",

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.2%
  • TypeScript 18.8%