You can use browserify with brfs <https://github.com/substack/brfs> to
inline file calls. Seems to be limited to readFileSync, though.

Gary Katsevman
gkatsev.com


On Fri, Oct 4, 2013 at 7:16 AM, Gagle <[email protected]> wrote:

> I'm in need to adapt a node module to be executed in a browser. I have 2
> questions:
>
> - Should I care about all the module loaders or may I just use browserify?
> - If so, my module uses fs.stat and fs.readFile but browserify doesn't
> support calls to the "fs" module. Are there any existing wrappers for the
> fs module? I just need fs.stat and fs.readFile. Should I write my own
> abstraction layer?
>
> --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to