Is there a way to determine whether the process was started for the first time or restarted by nodemon due to changes?

后端 未结 0 1837
情歌与酒
情歌与酒 2021-01-20 15:01

I want to run a particular function only when I start the process (eg. by running nodemon app.js) for the first time, and ignore it whenever nodemon restarts my

相关标签:
回答
  • 消灭零回复
提交回复
热议问题