joyent/node — pull request #2974 by seebees (2012-03-21 02:53:57+00:00)
Title: adding npm as a default REPL command

This is in response to #2931. Crazy Talk ACCEPTED!

I still need to write tests of course, and stream the input for a beter use experience, but as a proof of concept?

If I adjust these [lines](https://github.com/joyent/node/blob/master/lib/repl.js#L168-178) then you could even handel `npm` not just `.npm`

In any event I would use the REPLKeyword engin to solve this problem.

My, I even love how the prompt does not come back until npm returns! It's the small things...