JSONP response extension.
pnpm i @tinyhttp/jsonp
import { App, extendMiddleware } from '@tinyhttp/app'
import { jsonp } from '@tinyhttp/jsonp'
new App({
applyExtensions: (req, res) => {
extendMiddleware(req, res)
json(req, res)
}
})
.get('/', (req, res) => res.jsonp({ some: 'jsonp' }))
.listen(3000)