# nrp2

> a reverse proxy with no third dependency

Latest version **1.0.0** (published 2015-07-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install nrp2
pnpm add nrp2
yarn add nrp2
bun add nrp2
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-07-18 |
| First published | 2015-05-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | iSayme |
| Maintainers | isayme |
| Keywords | reverse, proxy |

## Links

- npm: https://www.npmjs.com/package/nrp2
- Repository: https://github.com/isayme/nrp
- Homepage: https://github.com/isayme/nrp#readme
- Issues: https://github.com/isayme/nrp/issues
- npm.io page: https://npm.io/package/nrp2

## Recent versions

- 1.0.0 (latest) — 2015-07-18
- 0.1.2 — 2015-05-20
- 0.1.1 — 2015-05-19
- 0.1.0 — 2015-05-19

## README

nrp
===
A reverse proxy in Node.js.

Install
=======
```
npm install nrp2
```

Example
=======
Below is a reverse proxy example of `https://www.google.com`:

	var NRP = require('nrp2');
	
	var google = new NRP({
	    host: 'https://www.google.com', // the DOMAIN that will be proxied
	    ssl: true,              // use HTTPS or not, default false
	    key: 'nrp-key.pem',     // only used when SSL is true, see more detail below section
	    cert: 'nrp-cert.pem',   // only used when SSL is true, see more detail below section
	});
	
	// the `listen` is same with [listen](https://nodejs.org/api/http.html#http_server_listen_port_hostname_backlog_callback) in `Node.js`.
	google.listen(443);


key&cert files
==============
To proxy HTTPS website, you should provide both key & cert files.

You can use `nrp-key.pem` & `nrp-cert.pem` in `test` folder. But if you want create yours, please try commands:

	$ openssl genrsa -out nrp-key.pem 1024
	$ openssl req -new -key nrp-key.pem -out nrp-cert.csr
	$ openssl x509 -req -in nrp-cert.csr -signkey nrp-key.pem -out nrp-cert.pem


Contact
=======
`Email`: `isaymeorg@gmail.com`

---
_Source: https://npm.io/package/nrp2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
