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