Cronjob schedule. Light, fast and secure.
npm install @cimo/cronjobNpm package, cronjob schedule. Light, fast and secure.
Writed with native Typescript code and no dependencies are used.
1. npm run build
2. Copy the file "/build/package_name-x.x.x.tgz" in the project root folder.
3. In the "package.json" file insert: "@cimo/package_name": "file:package_name-x.x.x.tgz"
1. npm run build
2. npm login --auth-type=legacy
3. npm publish --auth-type=legacy --access public
1. Link for npm package -> https://www.npmjs.com/package/@cimo/cronjob
- test.json
```
{
"schedule": "/1 *",
"command": "ls -la"
}
- Server.ts
`
...
import { Cc } from "@cimo/cronjob/dist/src/Main";
...
Cc.execute("./file/cronjob/");
...
``