# vulcain-ext-express

> Vulcain extension to use express as server adapter

Latest version **1.0.0** (published 2017-09-30) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install vulcain-ext-express
pnpm add vulcain-ext-express
yarn add vulcain-ext-express
bun add vulcain-ext-express
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-09-30 |
| First published | 2017-09-30 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | Alain Metge |

## Links

- npm: https://www.npmjs.com/package/vulcain-ext-express
- Repository: https://github.com/vulcainjs/vulcain-ext-express
- Homepage: https://github.com/vulcainjs/vulcain-ext-express#readme
- Issues: https://github.com/vulcainjs/vulcain-ext-express/issues
- npm.io page: https://npm.io/package/vulcain-ext-express

## Dependencies (3)

- [express](https://npm.io/package/express.md) ^4.16.0
- [body-parser](https://npm.io/package/body-parser.md) ^1.18.2
- [vulcain-corejs](https://npm.io/package/vulcain-corejs.md) >2.0.0-

## Recent versions

- 1.0.0 (latest) — 2017-09-30

## README

# Vulcain extension to use express as server adapter

## How to use it

Install package with

```js
npm install vulcain-ext-express --save
```

Create a new adapter extending ExpressAdapter which will replace the default adapter

```js
import { ExpressAdapter } from 'vulcain-ext-express';

// Declare your new adapter before running application
@Injectable(LifeTime.Singleton, DefaultServiceNames.ServerAdapter )
class MyAdapter extends ExpressAdapter {
    initializeRoutes(express) {
        // Add express initialization here
    }
}

// MyAdapter will be use automatically
let app = new ApplicationBuilder('Domain')
    .runAsync();
```

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