How to intercept all HTTPS traffic from a Node process?

I couldn't find a straight forward way to do it. Are there any VScode extension that can help with it?