0.0.0 • Published 11 years ago

argo-server v0.0.0

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

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.

Example

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

var argo = require('argo-server');

argo()
  .use(function(addHandler) {
    addHandler('response', function(env, next) {
      env.response.setHeader('Access-Control-Allow-Origin', '*');
      next(env);
    });
  })
  .target('http://weather.yahooapis.com')
  .listen(1337);

Install

$ npm install argo

Usage

.use(1)

.target(1)

.route(2)

.map(2)

.include(1)

Tests

Unit tests:

$ npm test

Test Coverage:

$ npm run-script coverage

License

MIT

0.0.0

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago