Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
server.on('request', (req, res) => { proxy.web(req, res, { hostname: 'localhost', port: 3000 }) })
A simple http/2 & http/1.1 spec compliant proxy helper for Node.