You can use --embed-file to include file data with the program. Another
option is to use NODEFS, which lets you mount a directory in the virtual
filesystem so it reads from your actual local filesystem, see e.g.
https://github.com/kripken/emscripten/blob/master/tests/fs/test_nodefs_rw.c

- Alon



On Sat, Jul 19, 2014 at 11:55 AM, wolfviking0 <[email protected]>
wrote:

> Hi,
>
> I want launch some of my sample outside the browser using nodejs.
>
> On basic sample it's working, it's easy to launch node hello_world.js.
>
> But some of my sample has data. I add the node module xmlhttpresquest, but
> I still have some trouble, I suppose because my file are local and I am
> outside the browser.
>
> Anyway, may be somebody have some suggestion for launch js without browser
> but with data.
>
> Thanks
>
> Tony
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" 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/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" 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/d/optout.

Reply via email to