JSPM

cors-proxy

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 529
  • Score
    100M100P100Q114070F
  • License MIT

Cors proxy for requests

Package Exports

  • cors-proxy

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cors-proxy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

install

npm i cors-proxy

usage

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

git clone git@github.com:gkucmierz/cors-proxy.git
npm i -g gulp
npm i
gulp