Introducing node-cron
Since we don't want to reinvent the wheel, we can benefit from a very useful node package called node-cron
, which delivers exactly what we are looking for. Simply install the package by running the following command:
$ npm install node-cron --save
Normally we want to install the typings that are shipped with every node package. But not every node package is designed to be used inside TypeScript classes. Some of them, including node-cron, are plain JavaScript files. To prove that, try the following command:
$ typings install node-cron --save
As you can see, in the error message we can discover two facts:
typings ERR! message Unable to find "node-cron" ("npm") in the registry. typings ERR! message We could use your help adding these typings to the registry:    https://github.com/typings/registry  Â
The first line indicates that node-cron doesn't provide any typings. The second error message denotes that there is a typings registry for all node packages and if you are...