workin

Cloudflare workers toolkit

Usage no npm install needed!

<script type="module">
  import workin from 'https://cdn.skypack.dev/workin';
</script>

README

workin

6466 2582

Cloudflare worker toolkit

Usage:

const workin = require('workin')
workin(async event => {
  const request = event.request
  return workin.json({ hello: 'world' })
})

Catches errors:

workin(async event => {
  request.log('debugging!')
  throw new Error('Big error!')
})

The worker should produce an HTML response that captures the logs and exception information.