summary refs log tree commit diff stats
path: root/compiler/nodejs.nim
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2015-01-28 14:58:31 +0000
committerDominik Picheta <dominikpicheta@googlemail.com>2015-01-28 14:58:31 +0000
commit6143393adbfc03b2de873c070fd53214696ca94c (patch)
treebc4f834f84e48890c884c92e5d7872ca70fec8e0 /compiler/nodejs.nim
parent190cc01f2407629a31d0796eb55283fce7ec8093 (diff)
downloadNim-6143393adbfc03b2de873c070fd53214696ca94c.tar.gz
Move lib/pure/nodejs to compiler/nodejs. Ref #2017.
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")