Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mustafah15/express-proxy-server
proxy middleware for express
https://github.com/mustafah15/express-proxy-server
express express-middleware middleware
Last synced: 3 months ago
JSON representation
proxy middleware for express
- Host: GitHub
- URL: https://github.com/mustafah15/express-proxy-server
- Owner: mustafah15
- License: mit
- Created: 2019-12-20T23:17:16.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T01:00:35.000Z (about 2 years ago)
- Last Synced: 2024-10-07T19:07:47.723Z (5 months ago)
- Topics: express, express-middleware, middleware
- Language: JavaScript
- Homepage:
- Size: 1010 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# express proxy server
[](http://badge.fury.io/js/express-proxy-server)
Easy way to build a proxy middleware for express apps
## Install
```bash
$ npm install express-proxy-server --save
```## Example:
As simple as that,
proxy URLS starting with '/proxy' to the your api host 'www.yourapi.com':```js
var proxy = require('express-proxy-server');
var app = require('express')();app.use('/proxy', proxy('www.yourapi.com'));
```This will proxy all the requests to 'www.yourapi.com' with all params and body args
### License
The MIT License (MIT). Please see [License](https://github.com/mustafah15/express-proxy-server/blob/master/LICENCE) File for more information.