Node scripting in command line for testing?

Viewed 40

I'm using Node for a lot of small JSON manipulation scripts, similarly to how one would use Python. However, every time I want to change my output, I obviously have to edit my script file, save it, and run it using the node command.

Is there perhaps a way to directly write scripts in a "live" command prompt, similarly to a python shell / jupyter notebook?

1 Answers

Yes - there is.

You can use node REPL.

REPL stands for Read-Eval-Print-Loop and is the tool you are looking for.

See here for more info.

Related