shr
supervisor-hot-reload
npm i supervisor-hot-reload
shr

supervisor-hot-reload

A supervisor program for running nodejs programs

by Petru Isfan

0.1.0 (see all)License:MITTypeScript:Not Found
npm i supervisor-hot-reload
Readme

supervisor-hot-reload

supervisor + hot-reload.

Install

$ npm i supervisor-hot-reload -g

Example

app.js

'use strict';

const express = require('express');
const app = express();
const user = require('./user');

app.get('/', function (req, res) {
  res.send(user);
})

app.listen(3000);

user.js

module.exports = {
  id: 1,
  age: 19
}
DEBUG=proxy-hot-reload supervisor-hot-reload app.js

If you modify user.js, it will hot reload user.js. If you change app.js, it will restart server.

Options

see supervisor.

License

MIT

No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate