@iridium/use-json
v0.0.0 now.sh
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
npm i @iridium/use-json
Metadata
- MIT
- Whatever
- David Bernal
- released 12/22/2018