Skip to content

A package for converting express request to axios request and axios response to express response.

License

Notifications You must be signed in to change notification settings

yoavrozner/axios-express-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

axios-express-proxy

A lightweight package for proxying express request to axios request and send back the response.

The package can also send just the express request as an axios request. In addition, the package can also send just the axios response as the express response.

Usage

import express from 'express';
import { Proxy } from 'axios-express-proxy';
const app = express();
const port = 3000;

app.get('/', (req, res) => Proxy('http://localhost:8080', req, res));

app.listen(port, () => console.log(`Example app listening on port ${port}!`));

Installation

$ npm install axios-express-proxy

About

A package for converting express request to axios request and axios response to express response.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published