btw - i haven't tried this on windows but presume it works the same as
below...

On Feb 7, 11:15 am, billywhizz <[email protected]> wrote:
> if you look at the node.js file in the src directory you will see the
> following:
>
>     if (NativeModule.exists('_third_party_main')) {
>       // To allow people to extend Node in different ways, this hook
> allows
>       // one to drop a file lib/_third_party_main.js into the build
>       // directory which will be executed instead of Node's normal
> loading.
>       process.nextTick(function() {
>         NativeModule.require('_third_party_main');
>       });
>
> this allows you to run your own script on startup. you can also put
> any scripts it depends on in the lib directory and run "make" and
> these scripts will be built into the binary. you can then just require
> them without any path. i.e. if you put a script called "mylib.js" in
> the lib directory and run "make" then you can do this in your
> _third_party_main.js:
>
> var mylib = require("mylib");
>
> On Feb 7, 8:26 am, Yucong Sun (叶雨飞) <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I'm developing a windows program which I want to directly embedding
> > node run-time and execute in-memory scripts, is this possible? is
> > there any document?
>
> > Another possible solution I know of is embedding node binary and
> > extract to a temporary location, write script files and execute from
> > there , which I prefer not to, as to maintain integrity of the
> > program.
>
> > Thanks.

-- 
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

Reply via email to