Abstract
This chapter’s concern is the execution of untrusted code. In this case, “untrusted” refers to code that is not part of your application or imported modules but can still be executed. This chapter's specific focus is on two main use cases for running untrusted code. The first involves executing applications and scripts by spawning child processes. This use case allows Node applications to behave like a shell script, orchestrating multiple utility programs to achieve a larger goal. The second use case concerns the execution of JavaScript source code. While this scenario is not as common as process spawning, it is supported in the Node core and should be understood as an alternative to eval().
Keywords
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 Colin J. Ihrig
About this chapter
Cite this chapter
Ihrig, C.J. (2013). Executing Code. In: Pro Node.js for Developers. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-5861-2_9
Download citation
DOI: https://doi.org/10.1007/978-1-4302-5861-2_9
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-5860-5
Online ISBN: 978-1-4302-5861-2
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books