简体   繁体   中英

Dynamically load node module in a running node.js process

Is there any way to load or attach node module to a already running node.js process. I want to attach a module which profiles node application, but how can i attach it dynamically without any change in user application. Please share your opinion. Thanks in advance :)

You can require() modules at any time, everywhere. Also from the NodeJS Inspector .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM