UNPKG

ccxt-compiled

Version:

A JavaScript / Python / PHP cryptocurrency trading library with support for 90+ exchanges

6 lines (5 loc) 344 B
// JavaScript CORS Proxy // Save this in a file like cors.js and run with `node cors [port]` // It will listen for your requests on the port you pass in command line or port 8080 by default let port = (process.argv.length > 2) ? parseInt (process.argv[2]) : 4080; // default require ('cors-anywhere').createServer ().listen (port, 'localhost')