convert-fetch-event
v0.1.0
Published
Convert `FetchEvent` to Node.js-style request handler.
Downloads
2
Readme
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