How to do AOP with node.js?

前端 未结 3 1228
独厮守ぢ
独厮守ぢ 2021-02-09 06:01

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.

Here is

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-09 06:41

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

    https://nestjs.com/

提交回复
热议问题