From abfd806c5052783a36c273e92ec5385dcecd0eb7 Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Sun, 16 Oct 2022 23:04:15 -0300 Subject: [PATCH] node: add --watch example (#9108) --- pages/common/node.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/node.md b/pages/common/node.md index ce9ace0e14..01d5dda396 100644 --- a/pages/common/node.md +++ b/pages/common/node.md @@ -11,6 +11,10 @@ `node` +- Execute the specified file restarting the process when an imported file is changed (requires Node.js version 18.11+): + +`node --watch {{path/to/file}}` + - Evaluate JavaScript code by passing it as an argument: `node -e "{{code}}"`