https://github.com/kevinsimper/express-reload
Automatic hot reload express.js server
https://github.com/kevinsimper/express-reload
Last synced: about 14 hours ago
JSON representation
Automatic hot reload express.js server
- Host: GitHub
- URL: https://github.com/kevinsimper/express-reload
- Owner: kevinsimper
- Created: 2017-07-20T23:21:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-12T09:48:55.000Z (over 2 years ago)
- Last Synced: 2025-07-02T00:49:00.179Z (12 days ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/express-reload
- Size: 16.6 KB
- Stars: 36
- Watchers: 3
- Forks: 6
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# express reload
Automaticly reload your express.js server without bringing down the server. This is really useful because it will hot reload instead of waiting for the whole node.js process to restart.
## Install
```
npm install express-reload --save-dev
```Find it on https://www.npmjs.com/package/express-reload
## Example
```js
var express = require('express')
var reload = require('express-reload')
var app = express()// path to reload
// important should end with "/" if index.js
var path = __dirname + '/project/'
// or like this for a non index.js name
var path = __dirname + '/project/server.js'app.use(reload(path))
app.listen(9000, () => console.log('Listening on 9000'))
```