Skip to content

FetchEvent to Node.js-like request handler.

Notifications You must be signed in to change notification settings

egoist/convert-fetch-event

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

convert-fetch-event

Convert FetchEvent to Node.js-style request handler.

import { createHandler } from 'convert-fetch-event'

addEventListener('fetch', (event) => {
  const handle = createHandler(event)
  handle((req, res) => {
    res.end('hello')
  })
})

License

MIT © EGOIST

About

FetchEvent to Node.js-like request handler.

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published