mirror of
https://github.com/SrIzan10/nodemon.git
synced 2026-05-01 10:55:09 +00:00
Needs careful testing in linux and windows. Also fixed #204 but requires config file to set `restartable` to false, since there's so many options to configure stdin and this particular case has narrow use.
11 lines
245 B
JavaScript
11 lines
245 B
JavaScript
var repl = require('repl');
|
|
|
|
// Start Express or something, when it's up, startup the REPL
|
|
var rpl = repl.start('REPL> ');
|
|
|
|
rpl.commands['.hello'] = {
|
|
help: 'Hello world command.',
|
|
action: function() {
|
|
console.log('Hello world.');
|
|
}
|
|
}; |