File Download API / Best Practices

Hello! I’m just getting started developing a simple extension that downloads a zip file and copies the contents into the current workspace. I’m not sure the best way to download the file as I’m very green with JS. Any advice? Thanks!

I think the fetch API can be used for this purpose, but how that can be done is a little non-obvious to me. In my own extensions, I run curl.

Yeah, I have the same feeling about fetch. curl would work. How are you running that if you don’t mind me asking?

I use the Process API.

Excellent, thanks! I’ve got it working with the Process API.