1

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
  • 2
    If you simply run node in a terminal you get JavaScript REPL similar to Python shell. Commented Nov 5, 2021 at 9:37

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.