Merge pull request #2017 from reactormonk/nodejs-binary

Algorithm to find the nodejs binary
This commit is contained in:
Andreas Rumpf
2015-01-28 15:14:39 +01:00
4 changed files with 15 additions and 7 deletions

6
lib/pure/nodejs.nim Normal file
View File

@@ -0,0 +1,6 @@
import os
proc findNodeJs*(): string =
result = findExe("nodejs")
if result == "":
result = findExe("node")