cronstack is a versatile library for managing tasks, scheduling functions. It allows you to automate the execution of functions through triggers or scheduled intervals. The package includes powerful CLI tools for managing your tasks, transpiling code, and bundling resources.
npm install cronstack
For the service to be recognized, ensure your service file follows the pattern:
- Directly under the
services
directory.
+<name>.service.ts
- Directory with name of the service under
services
directory.
<name>/+service.ts
Notice that you can put the services
directory in src
as well.
project-root
|-- services
| |-- +<name>.service.ts
| |-- <name>
| |-- +service.ts
npx cronstack init
cronstack add <name> --interval <interval>