lumo

:lumo: Standalone ClojureScript environment. Currently at version 1.9.0
hlship 2017-09-08T23:13:32.000175Z

What's the general pattern for accessing (built in) node modules from Lumo?

hlship 2017-09-08T23:13:57.000015Z

Is there a better option than (js/console.info ...) for example?

anmonteiro 2017-09-08T23:13:57.000038Z

@hlship in Lumo 1.7:

(require 'fs)
(fs/readFileSync "foo" "utf8")

anmonteiro 2017-09-08T23:14:11.000129Z

oh you mean JS globals

anmonteiro 2017-09-08T23:14:28.000231Z

yeah that’s the most concise you can make

anmonteiro 2017-09-08T23:14:45.000137Z

“Built-in node modules” for me mean fs, path et. al

hlship 2017-09-08T23:15:07.000022Z

I'm on Lumo 1.6.

hlship 2017-09-08T23:16:34.000176Z

... dowloading 1.7

hlship 2017-09-08T23:16:54.000095Z

No, I'm interested in node stuff like fs.

anmonteiro 2017-09-08T23:17:10.000076Z

oh, so my example should just work!

anmonteiro 2017-09-08T23:17:16.000212Z

if anything doesn’t let me know

hlship 2017-09-08T23:21:08.000213Z

Is there any way to alias or refer? I don't want to have to type child_process a billion times.