node -e vs node -p

30 Jul 2013

The difference between node -e and node -p is p will run the script through the interpretor and print the results. The -e will only evaluate the script. The time -e will print anything is if something writes to stdout or stderr.

node -p

node -e