summary refs log tree commit diff stats
path: root/compiler/nodejs.nim
blob: 781035bb7657fbc78a6e5aa3a34eb0051376bcb5 (plain) (blame)
1
2
3
4
5
6
7
import os

proc findNodeJs*(): string {.inline.} =
  ## Find NodeJS executable and return it as a string.
  result = findExe("nodejs")
  if result == "":
    result = findExe("node")