diff options
Diffstat (limited to 'compiler/nodejs.nim')
-rw-r--r-- | compiler/nodejs.nim | 6 |
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") |