# leajs-redirect

> manages redirects

Latest version **0.1.0** (published 2018-05-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install leajs-redirect
pnpm add leajs-redirect
yarn add leajs-redirect
bun add leajs-redirect
```

## 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.0 |
| Published | 2018-05-29 |
| First published | 2018-05-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Paul Pflugradt |
| Maintainers | paulpflug |

## Links

- npm: https://www.npmjs.com/package/leajs-redirect
- Repository: https://github.com/lea-js/leajs-redirect
- Homepage: https://github.com/lea-js/
- Issues: https://github.com/lea-js/leajs-redirect/issues
- npm.io page: https://npm.io/package/leajs-redirect

## Recent versions

- 0.1.0 (latest) — 2018-05-29

## README

# leajs-redirect

Plugin of [leajs](https://github.com/lea-js/leajs-server).

Manages redirects.

## leajs.config

```js
module.exports = {

  // Lookup to translate a url into a redirect. Will bypass other plugins
  // $item (Object) Redirect Object
  // $item.statusCode (Number) Status code for the http response
  // $item.head (Object) Headers for the http response
  // $item.body (String) Body for the http response
  redirect: {}, // Object

  // …

}
```

## License
Copyright (c) 2018 Paul Pflugradt
Licensed under the MIT license.

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