0.10.10 • Published 3 years ago

@scio/ipfs-core-dist v0.10.10

Weekly downloads
-
License
(Apache-2.0 OR MI...
Repository
github
Last release
3 years ago

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-coreversion 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