How to run a function while npm starts

npm-weekly

(Zia) #1

Hi everyone
I have created an api connector which gets data from server1 and send that to server2, now its manual, what I want is to; call my function automatically every hour after when i run npm start.
thank you