An open API service indexing awesome lists of open source software.

https://github.com/ericclemmons/express-hot-middleware

Simple way to enable hot-reloading in your Express applications.
https://github.com/ericclemmons/express-hot-middleware

Last synced: about 1 month ago
JSON representation

Simple way to enable hot-reloading in your Express applications.

Awesome Lists containing this project

README

        

# express-hot-middleware

> Simple way to enable hot-reloading in your Express applications.

[![travis build](https://img.shields.io/travis/ericclemmons/express-hot-middleware.svg)](https://travis-ci.org/ericclemmons/express-hot-middleware)
[![version](https://img.shields.io/npm/v/express-hot-middleware.svg)](http://npm.im/eexpress-hot-middleware)
[![downloads](https://img.shields.io/npm/dm/express-hot-middleware.svg)](http://npm-stat.com/charts.html?package=express-hot-middleware)
[![MIT License](https://img.shields.io/npm/l/express-hot-middleware.svg)](http://opensource.org/licenses/MIT)

### Installation

```shell
$ npm install --save express-hot-middleware
```

### Usage

```js
import express from "express";
import hot from "express-hot-middleware";

export default express()
.use(hot(module, () => [
require("./middleware/statics"),
require("./middleware/session"),
require("./middleware/auth"),
require("./middleware/api"),
require("./middleware/view"),
]))
;
```

_Don't worry about not using `import` here for ES6 modules. If you export `default`, it will be used_.

### License

> MIT License 2016 © Eric Clemmons