npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

How to run a function while npm starts

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