This package is a fork from cloudworker created by Dollar Shave Club. I have further added the feature to support scheduled event from cloudflare worker.
NPM: https://www.npmjs.com/package/@ericxstone/cloudworker
Install via NPM:
npm install -g @ericxstone/cloudworker
const Cloudworker = require('@ericxstone/cloudworker')
const simpleScript = `addEventListener('scheduled', event => {
event.waitUntil(() => {});
})`
const cw = new Cloudworker(simpleScript)
cw.triggerCronJob.then((res) => {
console.log("Schedule is triggered")
})
For other features and description, please refer to the original repository.
MIT