Permalink
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (14 sloc) 412 Bytes
(ns nodehello
(:require [cljs.nodejs :as nodejs]))
(defn -main [& args]
(println (apply str (map [\space "world" "hello"] [2 0 1]))))
(nodejs/enable-util-print!)
(set! *main-cli-fn* -main)
(comment
; Compile this using a command line like:
CLOJURESCRIPT_HOME=".../clojurescript/" \
bin/cljsc samples/nodehello.cljs {:target :nodejs} \
> out/nodehello.js
; Then run using:
nodejs out/nodehello.js
)