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
APA
Stefan Judis | Sciencx (2022-12-08T05:21:48+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 2022-12-08T05:21:48+00:00,<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 2022-12-08T05:21:48+00:00]. 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 2022-12-08T05:21:48+00:00. 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: 2022-12-08T05:21:48+00:00]
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/ | 2022-12-08T05:21:48+00:00
https://github.com/addpipe/simple-recorderjs-demo