Simple CLI tool & library that opens a webpage on a cron schedule.
Tray | Menu |
---|---|
Run the following to quickly get started:
npm i -g install cron-page
cron-page setup
(I haven't been able to get it to work via npx
, but let me know if you have any tips!)
cron-page setup
This will register the app to run when the current user logs in. It can also validate the cron schedule and shows the schedule explained so you can rest assured it's correct.
cron-page run <url> [--schedule=<cron schedule>]
The default cron schedule is every hour from 9:55AM-4:55PM on Monday through Friday (55 9-17 * * 1-5
).
cron-page remove
This unregisters the app from the user startup process.
cron-tab is written in TypeScript, so all types are available via intellisense. See src/bin.ts
for an example of working with the CronPage
class.
GPLv3