Artboard 16light, inspiration, solution, idea, innovation,Google Sheets iconSwift icon
Published at
Updated at
Reading time
This post is part of my Today I learned series in which I share all my web development learnings.

Today my friend Dominik wrote a tweet describing that there are special commands available in the Node.js REPL.

In total there are seven commands which I didn't know of. 🎉

Using the .editor command you can switch modes which allows to write JavaScript that goes beyond one line in editor mode. And then even more exciting you can use .load and .save to well... save and load REPL sessions. This can definitely come in handy when moving out of the REPL again to simply export the executed code or when starting a REPL session to set up a given state quickly. Cool stuff!

Related Topics

Related Articles