npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

workin

1.0.6

@mikeal

npmHomeRepoSnykSocket
Downloads:438
$ npm install workin
DailyWeeklyMonthlyYearly

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.