Neat Pidgeon Manure

    resolve-api-handler-express

    0.23.2 • Public • Published

    resolve-api-handler-express

    npm version

    This package is a Api Handler adapter for Express.

    Usage

    import express from 'express'
    import wrapApiHandler from 'resolve-api-handler-express'
     
    const handler = async (req, res) => {
      res.end('Hello World!')
    }
     
    const app = express()
     
    app.use('/my-handler', wrapApiHandler(handler))
     
    app.listen(3000)

    Analytics

    Install

    npm i resolve-api-handler-express

    DownloadsWeekly Downloads

    23

    Version

    0.23.2

    License

    MIT

    Unpacked Size

    55.8 kB

    Total Files

    6

    Last publish

    Collaborators

    • resolve-admin
    • reimagined-admin
    • vladihost
    • lykoi18