@iridium/use-send
v0.0.2
Published
res.send for now.sh
Downloads
3
Readme
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