@iridium/use-json

0.0.0 • Public • Published

Use-json

Usage:

const useJson = require('@iridium/use-json');

// function serverless
module.exports = useJson(async (req, res) => {
  const obj = {hello: 'world'};

  res.json(obj); // <- thanks to use-json
})

License

MIT © David Bernal

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @iridium/use-json

      Weekly Downloads

      0

      Version

      0.0.0

      License

      MIT

      Unpacked Size

      1.97 kB

      Total Files

      4

      Last publish

      Collaborators

      • davidbernal