NewJob
NewJob

Reputation: 69

Node scripting in command line for testing?

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?

Upvotes: 1

Views: 126

Answers (1)

balderman
balderman

Reputation: 23825

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.

Upvotes: 1

Related Questions