Issue commands from the terminal with node.js

consolr

A utility to use with the input from terminal (process.stdin) while the application is running and emit events to handle internal server commands

I found it very useful while developing for example a chat application, using the event emitall and passing the message to all the connected sockets. In order to test, or in a production environment to make a global announcement.

Continue reading

Advertisements