Skip to content

EricxStone/cloudworker

 
 

Repository files navigation

@ericxstone/cloudworker

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

Installing

Install via NPM:

npm install -g @ericxstone/cloudworker

Package Usage

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.

License

MIT

About

Run Cloudflare Worker scripts locally

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.7%
  • Dockerfile 0.3%