Files
archived-nodemon/test/fixtures/repl.js
Remy Sharp cc44b58641 Fixed extension watching and fixed perf bug in check
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.
2013-10-31 00:25:36 +00:00

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.');
}
};