This library can be used to upload/download files to Swarm via http://swarm-gateways.net/
Note that while this is a convenient feature as of today, it may not be present indefinitely.
const swarmgw =// This should output the hash: 931cc5a6bd57724ffd1adefc0ea6b4f0235497fca9e4f9ae4029476bcb51a8c6swarmgw// This should output the content: Hello from swarmgw!swarmgw
It can also be used via the command line if installed globally (
npm install -g swarmgw). To see the help:
Copyright (C) 2016 Alex Beregszaszi