@iridium/use-send

v0.0.2
res.send for now.sh
now.sh

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

npm i @iridium/use-send

Metadata

  • MIT
  • Whatever
  • David Bernal
  • released 1/20/2019

Downloads

Maintainers