This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis
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!
Reply to Stefan
This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis
Stefan Judis | Sciencx (2017-06-25T22:00:00+00:00) Commands in the Node.js REPL (#tilPost). Retrieved from https://www.scien.cx/2017/06/25/commands-in-the-node-js-repl-tilpost/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.