crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

Node.js CL Option2
Question Posted on 31 Jan 2024Home >> Tutorial >> Node.js Tutorial >> Node.js CL Option2

Node.js CL Option2

Node.js Command Line Options Examples



To view the version of running node:
To view this you need to open Node.js command prompt and need to run command node -v or node --version as given in below screen.



nodejs cli


For Help:



To get help we mainly used command node ?h or node --help



nodejs Help



To evaluate an argument (but not print result):



Use command node -e, --eval "script" (This will not print result)

To evaluate an argument and print result also:



Use command node -p "script" (This will print result)

Below screen will show the result of above two command



nodejs e and p



To open REPL even if stdin doesn't appear:



We can use command node -i, or node --interactive



nodejs REPL
0
0



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

Parts of Node.js

Install Node.js Linux

Node.js First Example

Node.js Globals

Node.js DNS






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap