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.
- Host: GitHub
- URL: https://github.com/ericclemmons/express-hot-middleware
- Owner: ericclemmons
- License: mit
- Created: 2016-03-18T19:36:54.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-05T20:19:14.000Z (about 9 years ago)
- Last Synced: 2025-03-10T19:03:18.832Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# express-hot-middleware
> Simple way to enable hot-reloading in your Express applications.
[](https://travis-ci.org/ericclemmons/express-hot-middleware)
[](http://npm.im/eexpress-hot-middleware)
[](http://npm-stat.com/charts.html?package=express-hot-middleware)
[](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