# @netlify/rules-proxy

> This is a node middleware that works with express servers, connetct servers, etc, and implementes the full Netlify edge rules engine for your local dev environment.

Latest version **0.1.4** (published 2019-05-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install @netlify/rules-proxy
pnpm add @netlify/rules-proxy
yarn add @netlify/rules-proxy
bun add @netlify/rules-proxy
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2019-05-10 |
| First published | 2019-03-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 123.2 KB |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | benaiah, biilmann, bret, calavera, davidwells, erquhart, imorente, lunathecat, shortdiv, sw-yx |

## Links

- npm: https://www.npmjs.com/package/@netlify/rules-proxy
- Repository: https://github.com/netlify/netlify-rules-proxy
- Homepage: https://github.com/netlify/netlify-rules-proxy#readme
- Issues: https://github.com/netlify/netlify-rules-proxy/issues
- npm.io page: https://npm.io/package/@netlify/rules-proxy

## Dependencies (6)

- [cookie](https://npm.io/package/cookie.md) ^0.3.1
- [chokidar](https://npm.io/package/chokidar.md) ^2.0.4
- [netlify-cli-logo](https://npm.io/package/netlify-cli-logo.md) ^1.0.0
- [netlify-redirector](https://npm.io/package/netlify-redirector.md) ^0.0.4
- [http-proxy-middleware](https://npm.io/package/http-proxy-middleware.md) ^0.19.1
- [netlify-redirect-parser](https://npm.io/package/netlify-redirect-parser.md) ^1.0.3

## Recent versions

- 0.1.4 (latest) — 2019-05-10
- 0.1.3 — 2019-04-16
- 0.1.2 — 2019-04-06
- 0.1.1 — 2019-04-02
- 0.1.0 — 2019-03-29

## README

# Netlify Rules Proxy

This is a node middleware that works with express servers, connetct servers, etc, and implementes the full Netlify edge rules engine for your local dev environment.

## Usage

```js
const rulesProxy = require("netlify-rules-proxy");

app.use(rulesProxy({ publicFolder: "./dist" }));
```

Full options:

- `publicFolder` this defines the public folder the `_redirects` file gets written to
- `jwtSecret` secret for verifying JWT tokens if using role based rules
- `jwtRolePath` path when looking up a role in the claims of a JWT

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