Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gkucmierz/cors-proxy
https://github.com/gkucmierz/cors-proxy
api cors get post proxy
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gkucmierz/cors-proxy
- Owner: gkucmierz
- Created: 2017-02-04T23:19:17.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-17T10:28:22.000Z (almost 8 years ago)
- Last Synced: 2024-08-08T16:33:23.823Z (6 months ago)
- Topics: api, cors, get, post, proxy
- Language: JavaScript
- Homepage: https://cors-proxy-pwui.onrender.com/
- Size: 6.84 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```