I have a little problem doing some AOP with node.js:
Let\'s say I have an application in a script called server.js, and I want to monitor its functions.
To avoid reinventing the wheel, you could use nestjs which is a framework that propose a lot of tools. Among them you'll find interceptors which do what you want (i think).