# @ximerajs/express

> This plugin provides everything you need to quickly setup an express server with plenty of best-practice and standard middleware components.

Latest version **1.1.0** (published 2017-05-26) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @ximerajs/express
pnpm add @ximerajs/express
yarn add @ximerajs/express
bun add @ximerajs/express
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-05-26 |
| First published | 2016-10-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.9.0 |
| Dependencies | 12 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jgrenon |

## Links

- npm: https://www.npmjs.com/package/@ximerajs/express
- npm.io page: https://npm.io/package/@ximerajs/express

## Dependencies (12)

- [cors](https://npm.io/package/cors.md) ^2.8.1
- [helmet](https://npm.io/package/helmet.md) ^3.5.0
- [morgan](https://npm.io/package/morgan.md) ^1.8.1
- [express](https://npm.io/package/express.md) ^4.15.2
- [throw.js](https://npm.io/package/throw.js.md) ^3.0.1
- [body-parser](https://npm.io/package/body-parser.md) ^1.17.1
- [compression](https://npm.io/package/compression.md) ^1.6.2
- [cookie-parser](https://npm.io/package/cookie-parser.md) ^1.4.3
- [@ximerajs/base](https://npm.io/package/@ximerajs/base.md) 0.10.0
- [rate-limit-redis](https://npm.io/package/rate-limit-redis.md) ^1.1.0
- [express-rate-limit](https://npm.io/package/express-rate-limit.md) ^2.6.0
- [express-promise-router](https://npm.io/package/express-promise-router.md) ^1.1.1

## Recent versions

- 1.1.0 (latest) — 2017-05-26
- 1.0.1 — 2017-03-24
- 1.0.0 — 2017-03-19
- 0.2.4 — 2016-10-16
- 0.2.3 — 2016-10-16
- 0.2.3-pre — 2016-10-16

## README

# Express Server

This plugin provides everything you need to quickly setup an express server with plenty of best-practice and standard middleware components. 

## Declaring express apps

The express loader will locate all *.express.js files and create an application for each of them. 

Your app factory should return an object providing lifecycle hooks for your application. Right now, the supported hooks are: 

- config: Will receive the express application in parameter, before any middleware are installed
- middleware: Will receive the array of middleware to apply. Just modify this array if you want to add more or use your custom middleware components
- routeContext: Give you the chance to modify the context that will be made available to all route factories for your app. 

## Why do we need this plugin ? 

Other plugins requires express support (restapi and angularjs). Instead of having both declaring their own express flavour, we generalize this.

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