Node.js implementation of the Bitswap 'data exchange' protocol used by IPFS
> npm i ipfs-bitswap
const bitswap = require('ipfs-bitswap')
The code published to npm that gets loaded on require is in fact a ES5 transpiled version with the right shims added. This means that you can require it and use with your favourite bundler without having to adjust asset management process.
const bitswap = require('ipfs-bitswap')
Loading this module through a script tag will make the IpfsBitswap
object available in the global namespace.
<script src="https://unpkg.com/ipfs-bitswap/dist/index.min.js"></script>
<!-- OR -->
<script src="https://unpkg.com/ipfs-bitswap/dist/index.js"></script>
For the documentation see API.md.
Feel free to join in. All welcome. Open an issue!
This repository falls under the IPFS Code of Conduct.