mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-24 16:25:25 +00:00
find the nodejs binary
upstream calls it node, debian calls it nodejs. We gotta look for both of them.
This commit is contained in:
6
lib/core/nodejs.nim
Normal file
6
lib/core/nodejs.nim
Normal file
@@ -0,0 +1,6 @@
|
||||
import os
|
||||
|
||||
proc findNodeJs*(): string =
|
||||
result = findExe("nodejs")
|
||||
if result == "":
|
||||
result = findExe("node")
|
||||
Reference in New Issue
Block a user