cli-node

Simple cli for Node.js

npm install cli-node
4 downloads in the last week
9 downloads in the last month

cli-node

Simple helper to do command line interfaces

cli-node(prompt, exit_cmd, handle_input)

require('cli-node')('OK >', 'quit', function(line) {
    console.log(line);
})

OR read a script line by line

require('cli-node')('script.txt', function(s){
    console.log(s);
})
npm loves you