UNPKG

ipfs-bitswap

Version:

JavaScript implementation of the Bitswap data exchange protocol used by IPFS

10 lines 354 B
/** * @packageDocumentation * * This module implements the [Bitswap protocol](https://docs.ipfs.tech/concepts/bitswap/) in TypeScript. */ import { DefaultBitswap } from './bitswap.js'; export const createBitswap = (libp2p, blockstore, options = {}) => { return new DefaultBitswap(libp2p, blockstore, options); }; //# sourceMappingURL=index.js.map