@tinyhttp/jsonp
TypeScript icon, indicating that this package has built-in type declarations

2.1.8 • Public • Published

@tinyhttp/jsonp

npm (scoped) npm

JSONP response extension.

Install

pnpm i @tinyhttp/jsonp

Example

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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.8
    1
    • latest

Version History

Package Sidebar

Install

npm i @tinyhttp/jsonp

Weekly Downloads

1

Version

2.1.8

License

MIT

Unpacked Size

7.93 kB

Total Files

8

Last publish

Collaborators

  • dropthebeatbro