micro-morgan

    0.1.0 • Public • Published

    micro-morgan

    Morgan HTTP request logger middleware for Zeit's Micro framework.

    Install

    $ npm install --save micro-morgan
    

    Usage

    const { send } = require('micro');
    const morgan = require('micro-morgan');
     
    module.exports = morgan('tiny')(async (req, res) => {
      send(res, 200, 'Hello from micro')
    });

    Arguments are passed directly to morgan. For more information about formats, please check morgan docs

    License

    MIT © Nicolas Cisco

    Install

    npm i micro-morgan

    DownloadsWeekly Downloads

    232

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    2.38 kB

    Total Files

    5

    Last publish

    Collaborators

    • nickcis