6

When I put node -e "some argument string" into the command line, what does it do? I cant seem to find any documentation on this from google and stackoverflow searches.

1 Answer 1

18

It evaluates the script argument

node -e "console.log('test')" > test 

You can can get help and info by running...

node -h 

Or:

node --help 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.