diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2015-01-28 14:58:31 +0000 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2015-01-28 14:58:31 +0000 |
commit | 6143393adbfc03b2de873c070fd53214696ca94c (patch) | |
tree | bc4f834f84e48890c884c92e5d7872ca70fec8e0 /compiler/nodejs.nim | |
parent | 190cc01f2407629a31d0796eb55283fce7ec8093 (diff) | |
download | Nim-6143393adbfc03b2de873c070fd53214696ca94c.tar.gz |
Move lib/pure/nodejs to compiler/nodejs. Ref #2017.
Diffstat (limited to 'compiler/nodejs.nim')
-rw-r--r-- | compiler/nodejs.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/nodejs.nim b/compiler/nodejs.nim new file mode 100644 index 000000000..e2b79df19 --- /dev/null +++ b/compiler/nodejs.nim @@ -0,0 +1,6 @@ +import os + +proc findNodeJs*(): string = + result = findExe("nodejs") + if result == "": + result = findExe("node") |