From 856c3d1535bfa95fdd757937c3d9911bef292d8c Mon Sep 17 00:00:00 2001 From: Fionn Kelleher Date: Fri, 25 Dec 2015 22:17:46 +0000 Subject: [PATCH] Simplify node doc --- pages/common/node.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/common/node.md b/pages/common/node.md index c8bcb96d06..2f0949124c 100644 --- a/pages/common/node.md +++ b/pages/common/node.md @@ -1,11 +1,15 @@ # node ->Main node command +> Server-side JavaScript platform (Node.js) -- Call an interactive node shell +- Run a JavaScript file + +`node {{file}}.js` + +- Start a REPL loop (interactive shell) `node` -- Execute node on a JS file +- Evaluate JavaScript by passing it in the command -`node {{FILENAME}}.js` +`node -e "{{code}}"`