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

3.0.17 • Public • Published

@otterhttp/jsonp

npm (scoped) npm

JSONP response extension.

Install

pnpm i @otterhttp/jsonp

Example

import { App, extendMiddleware } from '@otterhttp/app'
import { jsonp } from '@otterhttp/jsonp'

new App({
  applyExtensions: (req, res) => {
    extendMiddleware(req, res)
    json(req, res)
  }
})
  .get('/', (req, res) => res.jsonp({ some: 'jsonp' }))
  .listen(3000)

/@otterhttp/jsonp/

    Package Sidebar

    Install

    npm i @otterhttp/jsonp

    Weekly Downloads

    33

    Version

    3.0.17

    License

    LGPL-3.0-or-later

    Unpacked Size

    4.15 kB

    Total Files

    6

    Last publish

    Collaborators

    • lordfirespeed