@iridium/use-send

0.0.2 • Public • Published

Use-send

Usage:

const useSend = require('@iridium/use-send');

// function serverless
module.exports = useSend(async (req, res) => {
  const data = 'hello world'; // string, json, buffer or stream

  res.send(data [, status]); // <- thanks to use-send
})

License

MIT © David Bernal

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @iridium/use-send

    Weekly Downloads

    0

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    2.09 kB

    Total Files

    4

    Last publish

    Collaborators

    • davidbernal