summary refs log tree commit diff stats
path: root/compiler/nodejs.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/nodejs.nim')
-rw-r--r--compiler/nodejs.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/nodejs.nim b/compiler/nodejs.nim
new file mode 100644
index 000000000..e2b79df19
--- /dev/null
+++ b/compiler/nodejs.nim
@@ -0,0 +1,6 @@
+import os
+
+proc findNodeJs*(): string =
+  result = findExe("nodejs")
+  if result == "":
+    result = findExe("node")