Clojurians
#lumo
<
2017-09-08
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

hlship23:09:32

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

hlship23:09:57

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

anmonteiro23:09:57

@hlship in Lumo 1.7:

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

anmonteiro23:09:11

oh you mean JS globals

anmonteiro23:09:28

yeah that’s the most concise you can make

anmonteiro23:09:45

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

hlship23:09:07

I'm on Lumo 1.6.

hlship23:09:34

... dowloading 1.7

hlship23:09:54

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

anmonteiro23:09:10

oh, so my example should just work!

anmonteiro23:09:16

if anything doesn’t let me know

hlship23:09:08

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