ipfs-gateway-emulator

A server emulating ipfs gateway behavior forked from local-web-server

Usage no npm install needed!

<script type="module">
  import ipfsGatewayEmulator from 'https://cdn.skypack.dev/ipfs-gateway-emulator';
</script>

README

view on npm npm module downloads

ipfs-gateway-emulator

ipfs-gateway-emulator is a distribution of lws bundled with a "stack pack" to emulate the behavior of ipfs gateway. Moist notably it redirect to trailing slash and support /ipfs/<hash> url

Synopsis

This package installs the ipfs-emulator command-line tool

Running ipfs-emulator

$ ipfs-emulator
Listening on http://mbp.local:8000, http://127.0.0.1:8000, http://192.168.0.100:8000

Install

$ npm install -g ipfs-gateway-emulator