cURL for Distributed Web command line
Heavily based on the *-fetch code created by RangerMauve for their outstanding project Agregore Browser you should try
npm install -g curld
or
yarn global add curld
In this early versions you can only use GET requests and the output is always the terminal.
curld protocol://server/directory/filename
This output will be sent to the screen If you want to save to a file or want to get a binary file, like an image, you can use:
curld protocol://server/directory/filename > newfilename
Apparently the DAT protocol support doesn't run with old DAT drives. I have to test this more.
curld dat://blog.maeve.moe
curld gemini://gemini.circumlunar.space/
curld gemini://hellomouse.net/mouse.jpg > mouse.jpg
curld hyper://blog.maeve.moe/
The support for IPNS is still broken. Only IPNS requests can be made.
curld ipns://ipfs.io/