@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.0
    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