Sha256: bd420b9be088366b6e28efb8858bb4e3320c979674b7ad34f24f493812e0a32e
Contents?: true
Size: 428 Bytes
Versions: 2
Compression:
Stored size: 428 Bytes
Contents
; Projects compiled with :target :nodejs can 'require' this namespace ; to get the nodejs globals loaded into cljs.nodejs and get ; ClojureScript's 'print' set up correctly. (ns cljs.nodejs) ; Define namespaced references to Node's externed globals: (def require (js* "require")) (def process (js* "process")) ; Have ClojureScript print using Node's sys.print function (set! cljs.core/string-print (.-print (require "util")))
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clementine-0.0.3 | ext/clojure-clojurescript-bef56a7/src/cljs/cljs/nodejs.cljs |
clementine-0.0.2 | ext/clojure-clojurescript-bef56a7/src/cljs/cljs/nodejs.cljs |