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

5310/ipfs-core-dist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipfs-core-dist

npm (scoped)

The NPM packages ipfs and ipfs-core both have TypeScript typings now, but because they're still not ESM capable and only ship Node code by default, modern toolchains like Snowpack or Vite try to import it directly into the browser which fails because of all sorts of dependency related complications.

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.

Install it from GitHub directly: npm i 5310/ipfs-core-dist, or from NPM with npm i @scio/ipfs-core-dist.

Use it with a standard import IPFS from 'ipfs-core-dist in a modern ESM or TypeScript project. I use it with Snowpack and Vite.

Notes:

  • The version number for this package is set to the most recent ipfs-core version I have personally used it with
    • However, it should work with future versions as well as all it does is reexport its own bundle with types
  • The dependency version for ipfs-core is currently set to 0.x
  • This shim will still fail on Deno when used through Skypack due to the many Node specific imports on ipfs-core

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