Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gkucmierz/cors-proxy


https://github.com/gkucmierz/cors-proxy

api cors get post proxy

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# install
```sh
npm i cors-proxy
```

# usage
```js
const proxyEndpoint = 'https://free-cors-proxy.herokuapp.com/';
const proxyUrl = url => `${proxyEndpoint}${encodeURIComponent(url)}`;

let exampleAPI = 'https://bitcoin-markets-api.herokuapp.com/ticker/btcpln';
let url = proxyUrl(exampleAPI);
```

# development
```sh
git clone [email protected]:gkucmierz/cors-proxy.git
npm i -g gulp
npm i
gulp
```