ipfs / npm-kubo

Install Kubo (go-ipfs) from NPM
https://www.npmjs.com/package/kubo
MIT License
41 stars 30 forks source link

feat: expose standalone download function #73

Closed lidel closed 4 months ago

lidel commented 4 months ago

This PR exposes manual download function that allows downloading binaries for more than one platform in programmatic fashion.

Use case: we want to use this in ipfs-desktop, to download both amd64 and arm64 binaries required for building universal DMGs (https://github.com/ipfs/ipfs-desktop/pull/1856).

Exposing download function here allows us to:

  1. leverage cached downloads, avoiding fetching same base arch artifact twice
  2. confirm download was successful by checking sha512
lidel commented 4 months ago

Merging so this ships with 0.29.x