Merge pull request #2017 from reactormonk/nodejs-binary
Algorithm to find the nodejs binary
This commit is contained in:
commit
190cc01f24
4 changed files with 15 additions and 7 deletions
6
lib/pure/nodejs.nim
Normal file
6
lib/pure/nodejs.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import os
|
||||
|
||||
proc findNodeJs*(): string =
|
||||
result = findExe("nodejs")
|
||||
if result == "":
|
||||
result = findExe("node")
|
||||
Loading…
Add table
Add a link
Reference in a new issue