R0X4R/sangrah ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Go command line tool that takes a list of JavaScript URLs, downloads them in parallel, prettifies the code, and saves each file to disk with a safe filename.
I want to be able to give it URLs from a text file or pipe them in from another command, then have it retry failed downloads a few times instead of stopping the whole run. It should support custom request headers and cookies too, since some links need auth. Please make it save the output into a folder I choose, and keep the original .js extension when possible. If beautifying fails, just save the raw response so nothing gets lost.
It would be great if it prints simple progress messages, with a quiet mode for scripting. If you need to check any current library docs online, go ahead.
Are you gonna build this?
make sure you review the code using coderabbit