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
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
})
MIT © David Bernal
npm i @iridium/use-json
0
0.0.0
MIT
1.97 kB
4