0.2.0 • Published 3 years ago
cron-page v0.2.0
cron-page
Simple CLI tool & library that opens a webpage on a cron schedule.
Tray | Menu |
---|---|
Installation
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!)
CLI
setup
(install
)
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.
run
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
).
remove
(uninstall
)
cron-page remove
This unregisters the app from the user startup process.
Library
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.
License
GPLv3