# nep

> Node Express Proxy

Latest version **1.1.8** (published 2015-08-28) · ISC license · 0 weekly downloads

## Install

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

Provides the command `nep`.

## 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.1.8 |
| Published | 2015-08-28 |
| First published | 2014-11-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 8 |
| Author | hxc |
| Maintainers | xiaocong.hxc |

## Links

- npm: https://www.npmjs.com/package/nep
- Repository: https://github.com/bigfactory/nep
- Issues: https://github.com/bigfactory/nep/issues
- npm.io page: https://npm.io/package/nep

## Dependencies (7)

- [chalk](https://npm.io/package/chalk.md) ^0.5.1
- [lodash](https://npm.io/package/lodash.md) ^2.4.1
- [express](https://npm.io/package/express.md) ^4.10.4
- [nep-env](https://npm.io/package/nep-env.md) 0.0.2
- [commander](https://npm.io/package/commander.md) ^2.5.0
- [nep-request](https://npm.io/package/nep-request.md) ~0
- [nep-certificate](https://npm.io/package/nep-certificate.md) 0.0.6

## Recent versions

- 1.1.8 (latest) — 2015-08-28
- 1.1.7 — 2015-08-28
- 1.1.6 — 2015-08-28
- 1.1.5 — 2015-08-28
- 1.1.4 — 2015-08-28
- 1.1.3 — 2015-08-28
- 1.1.2 — 2015-08-19
- 1.1.1 — 2015-08-12
- 1.1.0 — 2015-08-11
- 1.0.5 — 2014-12-02
- 1.0.4 — 2014-12-02
- 1.0.3 — 2014-11-27
- 1.0.2 — 2014-11-27
- 1.0.1 — 2014-11-27
- 1.0.0 — 2014-11-27
- … 1 more at https://npm.io/package/nep/versions

## README

## nep
---

Nep is a proxy build with Node.js and Express.


### Installation

```
$ npm install -g nep nep-responder-local
``` 

### Example

Set up config.js

```
module.exports = [
  {
    pattern: 'http://www.my-site.com/',
    responder: 'local',
    options: {
      file: '/www/my-site/'
    }
  }
];
```

Run nep within the same directory of config.js

```
$ nep
```

Change the browser's proxy setting to 127.0.0.1:8989

or just set up the domain in hosts

```
127.0.0.1 www.my-site.com
```

### Responder

Explore exists responders: [npm responder search] 

you may install responders using npm:

```
$ npm install -g nep-responder-web
```

or you can make your own responders as a node module

it is similar with the express middleware:

```
module.exports = function(req, res, next, data){
	var options = data.options;
	var pattern = data.pattern;
	
	res.send('I respond');
};
```

then in the config.js file

```
var myResponder = require('path/to/myResponder');

module.exports = [
  {
    pattern: 'http://www.my-site.com/',
    responder: myResponder,
    options: {
      file: '/www/my-site/'
    }
  }
];

```

[npm responder search]:https://www.npmjs.org/search?q=nep-responder

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