nodejs.nim 183 B

12345678
  1. import os
  2. proc findNodeJs*(): string {.inline.} =
  3. ## Find NodeJS executable and return it as a string.
  4. result = findExe("nodejs")
  5. if result == "":
  6. result = findExe("node")