argo-server

Deprecated. Please use npm install argo.

argo

Argo is an extensible, asynchronous API proxy and server.

argo offers:

  • Asynchronous request and response pipelines.
  • Reverse proxy to backend servers.
  • Extensible package system.

Adding Cross-Origin Resource Sharing to an API You Don't Control

var argo = require('argo-server');
 
argo()
  .use(function(addHandler) {
    addHandler('response', function(envnext) {
      env.response.setHeader('Access-Control-Allow-Origin', '*');
      next(env);
    });
  })
  .target('http://weather.yahooapis.com')
  .listen(1337);
$ npm install argo

Unit tests:

$ npm test

Test Coverage:

$ npm run-script coverage

MIT