swannodette / swannodette.github.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can someone explain this (js/require "fs") in blog.utils.node file?

tangrammer opened this issue · comments

Hi folks,
I am trying to understand why and how can use a javascript code included into a webpage the "fs" nodejs dependency.

On the other hand this code caused me the following error "require is not defined" when i tried to load the compiled clojurescript into my browser so I had to comment all the code related with 'js/require fs'

Am I doing something wrong?

Thanks in advance
And have a good day
Juan

That file is only meant to be used with Node.js.

Thanks!