0.0.0 • Published 5 years ago
@iridium/use-json v0.0.0
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
0.0.0
5 years ago