Commands in the Node.js REPL (#tilPost)

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 …


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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Commands in the Node.js REPL (#tilPost)." Stefan Judis | Sciencx - Sunday June 25, 2017, https://www.scien.cx/2017/06/25/commands-in-the-node-js-repl-tilpost/
HARVARD
Stefan Judis | Sciencx Sunday June 25, 2017 » Commands in the Node.js REPL (#tilPost)., viewed ,<https://www.scien.cx/2017/06/25/commands-in-the-node-js-repl-tilpost/>
VANCOUVER
Stefan Judis | Sciencx - » Commands in the Node.js REPL (#tilPost). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2017/06/25/commands-in-the-node-js-repl-tilpost/
CHICAGO
" » Commands in the Node.js REPL (#tilPost)." Stefan Judis | Sciencx - Accessed . https://www.scien.cx/2017/06/25/commands-in-the-node-js-repl-tilpost/
IEEE
" » Commands in the Node.js REPL (#tilPost)." Stefan Judis | Sciencx [Online]. Available: https://www.scien.cx/2017/06/25/commands-in-the-node-js-repl-tilpost/. [Accessed: ]
rf:citation
» Commands in the Node.js REPL (#tilPost) | Stefan Judis | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.