express-reload

1.2.0 • Public • Published

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

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'))
 

Package Sidebar

Install

npm i express-reload

Weekly Downloads

93

Version

1.2.0

License

MIT

Unpacked Size

2.13 kB

Total Files

3

Last publish

Collaborators

  • kevinsimper