Socket
Book a DemoInstallSign in
Socket

workin

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

workin

Cloudflare workers toolkit

latest
Source
npmnpm
Version
1.0.6
Version published
Weekly downloads
16
1500%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 10 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts