Is there a way to modify the context or global scope of a spawned (or to be spawned) child process?
The idea is that I spawn a child process and executes another js file. But I want to add some functionalities for easy usage. So either I change the context in which the js file is ran to an object with the extra functionalities, or I change its global scope by adding functions and objects to it.
An important side note, I don’t want any of these features to be added in the separate js file. The js separate file(s) is/are from end user, and I want to make life easy for them by adding standard functions they can use to interact with a more complex system.
--
--
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 nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
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 nodejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.