2

I have a JS script for Node that accepts piped data and sets it to a variable. I already did that part.

However, I'd like to have the Node command prompt stay open so I can experiment/"play with" different types of piped data before I made any future scripts, etc.

Is there any way keep a generic Node prompt open after a script has run?

Robert Dundon
  • 1,081
  • 1
  • 11
  • 22

1 Answers1

0

Check this Line Input Command-Line

You can implement a while statement to retrieve an input like "quit" and end your program.